I'm not really sure what you're talking about exactly, but they probably have Objects that know how to draw themselves, given a Graphics parameter. Then they call those methods from paintComponent()....
Type: Posts; User: KevinWorkman
I'm not really sure what you're talking about exactly, but they probably have Objects that know how to draw themselves, given a Graphics parameter. Then they call those methods from paintComponent()....
If you're calling getGraphics() on a Component, you're already doing something wrong. Haven't I told you that in the past? Check out the link and advice that dlorde gave you.