Two Laptop Bag
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

Applet Event Programming

Ankit chhan

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

Joined: Aug 27, 2012
Posts: 1166

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

Joined: May 03, 2008
Posts: 5115

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

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: Applet Event Programming
It's not a secret anymore!