-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1
-
x86
-
windows_nt
All key events can't be got on the panel of win32 version.
But they can be got on the panel of Solaris version.
The following is a sample applet to reproduce a bug.
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class My_Event extends Applet implements KeyListener {
public void init(){
addKeyListener(this);
}
public void keyPressed(KeyEvent evt){
System.out.println("pressed");
}
public void keyReleased(KeyEvent evt){
System.out.println("released");
}
public void keyTyped(KeyEvent evt){
System.out.println("char:" + evt.getKeyChar());
System.out.println("code:" + evt.getKeyCode());
}
}
But they can be got on the panel of Solaris version.
The following is a sample applet to reproduce a bug.
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class My_Event extends Applet implements KeyListener {
public void init(){
addKeyListener(this);
}
public void keyPressed(KeyEvent evt){
System.out.println("pressed");
}
public void keyReleased(KeyEvent evt){
System.out.println("released");
}
public void keyTyped(KeyEvent evt){
System.out.println("char:" + evt.getKeyChar());
System.out.println("code:" + evt.getKeyCode());
}
}
- relates to
-
JDK-4066152 4032657 - Canvas Doesn't receive Key Events (1.1.x only)
- Closed