It is possible. That is how I have it now.
Remember the this variable.
Type: Posts; User: Norm
It is possible. That is how I have it now.
Remember the this variable.
Where do you add an instance of the PongDrawer class to the JFrame?
Please post the new code.
Your code draws on the panel.
However the panel is not visible on the JFrame. Where do you add it?
You have added a paintComponent method to the class.
Where do you add the the JPanel with the paintComponet method to the JFrame?
What is the size of the JPanel when it is added to the JFrame?
Add a println to the paintComponent method to show the...
Ok , if you don't want to provide code for testing, then good luck with it.
Have you solved the problem now?
If you want anyone to help you with the problem, you need to provide: main() method and a JFrame that compiles, executes and shows the problem.
How does anyone test this code? You need a main() method and a JFrame that compiles, executes and shows the problem.