|
You need to look at the graphics tutorials on the Sun site as they'll show you the One True Way. But in brief, draw in a JPanel in its paintComponent method (not its paint method). Don't forget to call super.paintComponent(g) on the first line of the JPanel's paintComponent method.
|