Originally Posted by Fubarable
|
|
Don't use getGraphics to get your Graphics object. Instead extend JPanel override its paintComponent method and paint in there.
|
This deserves its own post! Painting with getGraphics can create problems in programs that are almost impossible to fix without rewriting the whole program. Don't do it!
__________________
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
|