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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER