You should read the tutorial at the link I posted above to see how to build a Swing GUI.
Also see this tutorial about how to do custom painting:
Lesson: Performing Custom Painting (The Java™...
Type: Posts; User: Norm
You should read the tutorial at the link I posted above to see how to build a Swing GUI.
Also see this tutorial about how to do custom painting:
Lesson: Performing Custom Painting (The Java™...
Applets are special classes that execute in a browser.
JFrames are normally used in applications executed by the java program.
They normally do NOT go together.
Please edit your post and wrap your code withcode tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Be sure the code is properly formatted with indentations for nested...