Duplicate :
|
|
Relates :
|
FULL PRODUCT VERSION : OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (build 1.6.0-b09, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Ubuntu Hardy Heron(8.04) EXTRA RELEVANT SYSTEM CONFIGURATION : Gnome Desktop 2.22.1 Swedish keyboard-layout A DESCRIPTION OF THE PROBLEM : JPasswordField does not accept characters for which you need to press "alt gr" to type. Eg. on a swedish keyboard: @��$ etc... //T STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Create e JPasswordField, catch the key typed event in a handler. Check the character of the KeyEvent if when you type @ EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - the getKeyChar-method of the KeyEvent should returns: '@' ACTUAL - the getKeyChar-method of the KeyEvent returns: '2' REPRODUCIBILITY : This bug can be reproduced always.