I\'m a newbie to the paint/graphics and wonder how to add a JPanel to my code in such way that the entire graphics will be on a JPanel and not on the JFrame.
In other wo
Read the Swing tutorial on Custom Painting for the proper way to do this.