*
The moose likes Applets and the fly likes Applet Event Programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Event Programming" Watch "Applet Event Programming" New topic
Author

Applet Event Programming

Ankit chhan
Greenhorn

Joined: Oct 04, 2012
Posts: 1
i've made an smiley face in applet .. now what i want is that, when i move my mouse over the smiley it will change to sad face ....
i am not getting it .... so please suggest me .....
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

You need to add a 'mouse over' listener!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

MouseListener has methods mouseEntered(...) and mouseExited(...).


luck, db
There are no new questions, but there may be new answers.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applet Event Programming
 
Similar Threads
Non synchronized threads
ternary statement
only for moderators and sherifs !!!
Array stuff again...
hi all - cleared SJCP with 86 %