Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    2,015

    Re: Need help with this little code

    I'd have a boolean that was set (true) when the mouse is first pressed (like you have) and then reset (false) when the mouse button is released. Your code has half of that problem solved :) (probably...
  2. Replies
    6
    Views
    2,015

    Re: Need help with this little code

    You're going to run into problems by calling your class paint because there's a method called paint, but it's not a constructor. Remember, Java is case sensitive. As a general convention, name...
  3. Replies
    6
    Views
    2,015

    Re: Need help with this little code

    I would test re-loading first in your mouseClicked event handler. This will give you what you want, and also keeps me from having to figure out the correct logic for testing the conditions :)
Results 1 to 3 of 3