Link to home
Start Free TrialLog in
Avatar of tungsim
tungsim

asked on

diffirent behaviour between IE40 and Navigator 404

SDK 1.01
Development platform Win95
I write some code :import java.applet.*;
import java.awt.*;

public class j2 extends Applet
{
      Button bt=new Button("Quit");
      TextArea ta=new TextArea(" ");
           public void init()
      {
       
              add(bt);
              add(ta);
                  resize(420, 240);
      }

      public boolean handleEvent(Event evt)
      {
      switch(evt.id)
      {
      case Event.MOUSE_DOWN :
            if(evt.metaDown())
             ta.appendText("Mouse right down\r\n");
            else
             ta.appendText("Mouse down\r\n");
      return true;
      default :
            return false;
      }
}


}
in Navigator when I click right button at anywhere in the applet a property sheet and a string "Mouse right down" appear (it mean I can handle that event)
but in IE40 if I click right button on "Quit" button or on text area string "Mouse right down " doesn't appear .
what wrong with my code ?
Thanks in advance.
Avatar of tungsim
tungsim

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of rprice032897
rprice032897

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial