Forcing a Tutorial - Mouse
Author |
Message |
TheZsterBunny
![](http://www.members.shaw.ca/rfolz/zstervava2.jpg)
|
Posted: Mon Oct 25, 2004 6:55 am Post subject: Forcing a Tutorial - Mouse |
|
|
*a-hem*
How do I use a mouse in Java? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Mon Oct 25, 2004 1:02 pm Post subject: (No subject) |
|
|
i whould use awt for this, it has an event listoner for the mouse that works much like the acation lisoners for buttions and things. To find out more on it use the javadoc that sun has at http://java.sun.com/j2se/1.5.0/docs/api/
it is under java.awt.event and it is an interface called MouseListener.
There is also a nice tuortal by sun on it here: http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
|
|