How do you draw one shape under another in Java?

时间:2019-02-24 03:14:01

标签: java swing drawing custom-painting

I know how to draw shapes and stuff in Java and know that more recently-drawn shapes stack up on previously drawn shapes, but how do you draw one shape under another? Like let's say you filled a Rectangle() r1, but then filled another Rectangle() r2 and had it display under r1. How would one do that? Other than just redrawing r1 over r2?

0 个答案:

没有答案