Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Forcing a Tutorial - Mouse
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheZsterBunny




PostPosted: Mon Oct 25, 2004 6:55 am   Post subject: Forcing a Tutorial - Mouse

*a-hem*

How do I use a mouse in Java?
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: 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!
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: