title: Applet event programming
body: <p>i've made a 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(newbie in event programming) .... so please suggest me what to do next.....</p>
  <p>Here is my code for Smiley-&gt;&gt;&gt;</p>
  <h1>smiley.java</h1>
  <pre><code>    import java.applet.*;
      import java.awt.*;
      import java.awt.event.*;
      public class smiley extends Applet implements MouseListener
       {
  
  
        public void init()
         {
           }
        public void paint(Graphics g)
          {
  
  
        g.setColor(Color.yellow);
        g.fillOval(40,40,120,150);
        g.setColor(Color.black);
        g.drawOval(61,75,20,20);
        g.setColor(Color.black);
        g.drawOval(115,75,20,20);
        g.fillOval(68,81,10,10);
        g.fillOval(121,81,10,10);
        g.setColor(Color.black);
        g.drawArc(75,95,50,50,180,180);
  
  
           }
        public void mouseEntered(MouseEvent me)
         {
          }
         public void mouseExited(MouseEvent me)
          {
  
           }
          public void mouseClicked(MouseEvent me)
          {
  
           }
         public void mousePressed(MouseEvent me)
         {
  
           }
          public void mouseReleased(MouseEvent me)
         {
  
           } 
  
           } 
  </code></pre>