Define a class that extends the JPanel class.
Override that class's paintComponent() method
Move the code that is in your paint() method to the paintComponent() method
Create an instance of the...
Type: Posts; User: Norm
Define a class that extends the JPanel class.
Override that class's paintComponent() method
Move the code that is in your paint() method to the paintComponent() method
Create an instance of the...
Problems I see:
Overriding the JFrame's paint method instead of adding a JPanel and overriding its paintComponent() method.
Assuming 750,750 is on the screen.
Not calling super method in paint