Re: Could not capture enter key event in awt with netscape 4.7
Wednesday, May 29, 2002 01:49 PM
try the following:
instead of void actionPerformed() method use
boolean actionEvent(Event evt) that returns boolean value.
then instead of if(evt.id==Event.MOUSE_DOWN) use
if(evt.id==1001). I think that 1001 is code for MOUSE_DOWN.
you can find all that integer codes in class Event.java in scc dir. of JDK.
thaat should work in netscape. try something else method (actionPerformed()), but use integer values to compare with event.