Have you solved the problem now? You haven't responded to my suggestions and requests so I assume that you don't need any more help.
Type: Posts; User: Norm
Have you solved the problem now? You haven't responded to my suggestions and requests so I assume that you don't need any more help.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Where does the code add the action listener to the button? See:...
Try debugging the code by adding some println statements to it that print out a message when any method is called. Then you will know what methods are being called.
Execute the code, copy the...
Why do you want to do that? The code currently calls the repaint() method which will cause the jvm to call the paint() method.
See this thread for how to add a listener to a button:
http://www.javaprogrammingforums.com/whats-wrong-my-code/28807-java-applets.html#post111663
Please explain what "does not work" means.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.