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...
Type: Posts; User: kinkita
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...
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...
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...
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?
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...