-
Bug
-
Resolution: Fixed
-
P3
-
1.2.2, 1.3.0
-
beta
-
x86
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2037923 | 1.4.0 | Eric Hawkes | P3 | Resolved | Fixed | beta |
Name: yyT116575 Date: 10/23/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
Hello,
although keyboard mapping problems were closed with BugID 4240658 I still (or
again?) have such problems when starting an app using Swing (both self-written,
and e.g. forte4j Community edition 1.0.2, build 849) with the new JDK 1.3.0 for
Linux. My concrete system is SuSE Linux 6.3 (kernel 2.2.13), and the problem
shows up irrespective of the VM used (HotSpot, or Classic VM). During start-up I
get messages like
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
and some keys of my 104-keys Cherry keyboard just don't work (e.g., >, # ?, and
+). Beside that, the apps work as expected.
With JDK 1.2.2 on the same plattform no such problems arise.
Hoping to hear from you,
with best regards
Kurt Spanier
(Review ID: 110501)
======================================================================
Name: yyT116575 Date: 10/23/2000
java version "1.2.2"
Classic VM (build 1.2.2_006, green threads, javacomp)
Run any java applet using the appletviewer, and get the following warning
messages:
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type
VirtualBinding
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type
VirtualBinding
Source Code:
// Display Fonts
/*
<applet code="ShowFonts" width=550 height=60>
</applet>
*/
import java.applet.*;
import java.awt.*;
public class ShowFonts extends Applet {
public void paint(Graphics g) {
String msg = "";
String FontList[];
GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
FontList = ge.getAvailableFontFamilyNames();
for(int i = 0; i < FontList.length; i++)
msg += FontList[i] + "\n";
g.drawString(msg, 4, 16);
}
}
(Review ID: 110354)
======================================================================
Name: bn120536 Date: 12/15/2000
java version "1.3.0beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)
Tilde and hash (on UK keyboard) are not seen as having been typed when running
under JDK1.3 beta refresh (only tested on Linux).
This code works on JDK1.2.2.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Tilde {
private JFrame frame;
private JTextField urlBar;
public static void main(String[] args) {
new Tilde();
}
public Tilde() {
frame = new JFrame("Tilde Test");
urlBar = new JTextField();
urlBar.setEditable(true);
urlBar.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {}
public void keyReleased(KeyEvent e) {}
public void keyTyped(KeyEvent e) {
char keyChar;
keyChar = e.getKeyChar();
System.out.println("Key typed: " + keyChar);
}
});
frame.getContentPane().add(urlBar);
frame.pack();
frame.setVisible(true);
}
}
On 1.2.2 an output of the form:
Key typed: a
Key typed: b
Key typed: c
Key typed: #
Key typed: ~
is seen, and characters appear in JTextField.
On 1.3, we only get output (and characters are similarly missing on JTextField)
of:
Key typed: a
Key typed: b
Key typed: c
Other symbols from shift-number etc. work OK.
No errors or warnings are reported, other than common missing fonts and
colourmap allocations.
(Review ID: 107902)
======================================================================
- backported by
-
JDK-2037923 Still problems with keyboard mapping (cf. 106369, 110354)
- Resolved
- relates to
-
JDK-4772481 PIT: "Warning: Cannot convert string" displays with awt/swing on RedHatLinux7.3
- Closed