Search:

Type: Posts; User: kinkita

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,110

    Re: Beginner java problem

    Yes! I got it! I added another mouse_listener to change the variable to zero when the mousebutton was released, which worked :)

    The listener that was supposed to change the variabel before was a...
  2. Replies
    9
    Views
    1,110

    Re: Beginner java problem

    I think I got it now, The string gets refreshed and does not multiply. But (sorry for being a pain in the ass) the string does not disappear when the mousebutton is released, which I would like it to...
  3. Replies
    9
    Views
    1,110

    Re: Beginner java problem

    I can't find any document where its says how to use repaint :/, or at least no ducument which I understand. I'm very new to Java so I would really appreciate if you could explain where and how I...
  4. Replies
    9
    Views
    1,110

    Re: Beginner java problem

    Should I call the repaint component inside the mouseReleased bacets?:



    It gives me an error though. I don't really understand... Could you explain a bit further?
  5. Replies
    9
    Views
    1,110

    Beginner java problem

    Hello everyone!

    I've been messing around withJava swing for a while now. I'm trying a draw a text in the mouse position everytime a mousebutton is pressed,
    but the problem is that everytime you...
Results 1 to 5 of 5