I agree with all andbin says, but I also accept that you may have created this odd construction just as a simple example, and it's useful. It shows that the order in which you do things matters. ...
Type: Posts; User: GregBrannon
I agree with all andbin says, but I also accept that you may have created this odd construction just as a simple example, and it's useful. It shows that the order in which you do things matters. ...
Does your paintComponent() method include the statement,
super.paintComponent( g );
?
If that doesn't solve it, post a simple program that demonstrates what always happens with your Swing...