JDK-6699860 : JPasswordField not accepting "alt gr"-characters
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-05-09
  • Updated: 2010-04-04
  • Resolved: 2008-05-30
Related Reports
Duplicate :  
Relates :  
Description
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.