-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.1, 5.0
-
x86
-
linux, windows_2000
Name: rmT116609 Date: 06/25/2002
FULL PRODUCT VERSION :
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)
FULL OPERATING SYSTEM VERSION : RedHat 7.3
glibc-2.2.5-34
ADDITIONAL OPERATING SYSTEMS :
EXTRA RELEVANT SYSTEM CONFIGURATION :
X-server: XFree86 4.20 (The standard X server in RedHat 7.3)
Swedish 104 key keyboad
In the InputDevice section of the /etc/X11/XF86Config-4 file i have
the following settings:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "Xleds" "1 2 3"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "se"
EndSection
A DESCRIPTION OF THE PROBLEM :
Dead keys followed by space doesnt generate a character in swing
components on Linux if a on non US key boards is used.
I have experienced the bug with a Swedish keyboard
To write a tilde character I write a tilde character on a Swedish
keyboard I would press "ALT-GR-tilde" followed by "space". When I
do this no character seams to be written to swing text components
like JTextField and JTextArea.
Since tilde is used in URL, this bug prevents the use of java on
Linux for internet related GUI applications.
Problems with dead keys on non US keyboards have bin around for
almost two years. Bug 4379138 have bin closed as fixed. But this
related problem with space after dead keys still remain. Or
is it the same problem?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Use a Swedish keyboard (Any non US Keyboard where ALT, and ALT-GR
is two distinkt keys could perhaps verify be uset to verify bug,
but I have no keyboards to test that)
2. Make sure that you have configured the InputDevice section of your
/etc/X11/XF86Config-4 to look like:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "Xleds" "1 2 3"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "se"
EndSection
3. Compile and run the following program:
4: Type the key sequence [Alt Gr]-[tilde] followed by [space]
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected result:
A tilde character should have turned up in the JTextField.
But it doesn't.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.event.*;
class TestNoDeadKeysAfterSpace extends JFrame implements KeyListener{
JTextField text=new JTextField(10);
public TestNoDeadKeysAfterSpace(){
text.addKeyListener(this);
getContentPane().add(text);
}
public void keyTyped(KeyEvent e){
System.out.println(e+"\n------------------------");
}
public void keyPressed(KeyEvent e){
System.out.println(e+"\n-----------------------------");
}
public void keyReleased(KeyEvent e){
System.out.println(e+"\n---------------------------");
}
public static void main(String[] arg){
TestNoDeadKeysAfterSpace t=new TestNoDeadKeysAfterSpace();
t.pack();
t.setVisible(true);
}
}
---------- END SOURCE ----------
(Review ID: 158316)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)
FULL OPERATING SYSTEM VERSION : RedHat 7.3
glibc-2.2.5-34
ADDITIONAL OPERATING SYSTEMS :
EXTRA RELEVANT SYSTEM CONFIGURATION :
X-server: XFree86 4.20 (The standard X server in RedHat 7.3)
Swedish 104 key keyboad
In the InputDevice section of the /etc/X11/XF86Config-4 file i have
the following settings:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "Xleds" "1 2 3"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "se"
EndSection
A DESCRIPTION OF THE PROBLEM :
Dead keys followed by space doesnt generate a character in swing
components on Linux if a on non US key boards is used.
I have experienced the bug with a Swedish keyboard
To write a tilde character I write a tilde character on a Swedish
keyboard I would press "ALT-GR-tilde" followed by "space". When I
do this no character seams to be written to swing text components
like JTextField and JTextArea.
Since tilde is used in URL, this bug prevents the use of java on
Linux for internet related GUI applications.
Problems with dead keys on non US keyboards have bin around for
almost two years. Bug 4379138 have bin closed as fixed. But this
related problem with space after dead keys still remain. Or
is it the same problem?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Use a Swedish keyboard (Any non US Keyboard where ALT, and ALT-GR
is two distinkt keys could perhaps verify be uset to verify bug,
but I have no keyboards to test that)
2. Make sure that you have configured the InputDevice section of your
/etc/X11/XF86Config-4 to look like:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "Xleds" "1 2 3"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "se"
EndSection
3. Compile and run the following program:
4: Type the key sequence [Alt Gr]-[tilde] followed by [space]
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected result:
A tilde character should have turned up in the JTextField.
But it doesn't.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.event.*;
class TestNoDeadKeysAfterSpace extends JFrame implements KeyListener{
JTextField text=new JTextField(10);
public TestNoDeadKeysAfterSpace(){
text.addKeyListener(this);
getContentPane().add(text);
}
public void keyTyped(KeyEvent e){
System.out.println(e+"\n------------------------");
}
public void keyPressed(KeyEvent e){
System.out.println(e+"\n-----------------------------");
}
public void keyReleased(KeyEvent e){
System.out.println(e+"\n---------------------------");
}
public static void main(String[] arg){
TestNoDeadKeysAfterSpace t=new TestNoDeadKeysAfterSpace();
t.pack();
t.setVisible(true);
}
}
---------- END SOURCE ----------
(Review ID: 158316)
======================================================================
- duplicates
-
JDK-4360364 Cyrillic input isn't supported under JRE 1.2.2 & 1.3 for Linux
- Resolved
- relates to
-
JDK-4799499 dead key followed by space should produce non-dead character on Unix
- Resolved
-
JDK-4797332 A few problems with dead keys in Swing text components
- Closed
-
JDK-4799500 dead key pressed/released twice should produce non-dead character on Unix
- Closed