-
Bug
-
Resolution: Duplicate
-
P1
-
None
-
1.2.0
-
x86
-
windows_nt
Name: rm29839 Date: 04/08/98
The ususal alternative method to enter a backslash (ALT - 92 on the numerical
pad) does NOT insert the desired character on German keyboards (A minus sign is
displayed).
This problem occurs with both TextFields and JTextFields.
import java.awt.*;
import java.awt.event.*;
class ShowKey extends Frame {
static public void main(String args[]) {
ShowKey showKey = new ShowKey();
}
ShowKey() {
addWindowListener(new WAdapter());
TextField tf = new TextField();
add(tf);
tf.addKeyListener(new MyKeyAdapter());
pack();
show();
}
class WAdapter extends WindowAdapter {
public void windowClosing(WindowEvent event) {
System.exit(0);
}
}
class MyKeyAdapter extends KeyAdapter {
public void keyPressed(KeyEvent e) {
System.out.println(e);
}
public void keyReleased(KeyEvent e) {
System.out.println(e);
}
public void keyTyped(KeyEvent e) {
System.out.println(e);
}
}
}
(Review ID: 27230)
======================================================================
- duplicates
-
JDK-4122715 Can't use Alt Numpad to enter European Char's into editable components
-
- Closed
-