Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    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.
  2. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    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:...
  3. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    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...
  4. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    Why do you want to do that? The code currently calls the repaint() method which will cause the jvm to call the paint() method.
  5. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    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
  6. Replies
    12
    Views
    1,269

    Re: Java Applets - Events and Graphics

    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.
Results 1 to 6 of 6