See the tutorial on custom painting: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Type: Posts; User: Norm
See the tutorial on custom painting: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Several problems:
You should NOT override both paint() and paintComponent().
You should NOT override either method of the JFrame class. NOTE: JFrame doesn't have a paintComponent() method.
If you...