Ah, I see. Don't call getGraphics() on a Component like that. Instead, store everything you need to draw in a Collection, and write a method that iterates through the Collection and draws each item....
Type: Posts; User: KevinWorkman
Ah, I see. Don't call getGraphics() on a Component like that. Instead, store everything you need to draw in a Collection, and write a method that iterates through the Collection and draws each item....
What exactly do you mean when you say that it does not work? Do you get an exception? Some kind of strange behavior? What exactly happens versus what you expect to happen? If you posted an SSCCE that...