JDK-4037318 : Bad character displayed in Java TextField using french keyboard
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0.2
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-03-07
  • Updated: 1997-03-22
  • Resolved: 1997-03-22
Related Reports
Duplicate :  
Description
With JDK 1.0.2 or 1.1_final using a french keyboard
under Solaris 2.x, when you press the '&' key In a 
TextField component you get a '1' character.
This problem occur for many characters 

ie:

&  ->  1
"  ->  3
(  ->  5
_  ->  8
)  ->  ��
=  ->  =
*  ->  ��
...

Configuration:

Solaris 2.5 US sparc platform french keyboard (layout 23)
JDK 1.0.2 or JDK 1.1_final (02/18/97)

You can reproduice the problem using the simple code below :

/////////////////////////////////////////////////////////////////////////////
import java.awt.* ;

public class AZERTY extends Frame
{
   private TextField textfield ;

   public AZERTY()
   {
      super("AZERTY") ;  
      textfield = new TextField ("", 30) ;
      setLayout ( new FlowLayout(FlowLayout.LEFT) ) ;
      add (textfield) ;
   }

   public boolean handleEvent (Event evt)
   {
      if (evt.target.equals(textfield))
         System.out.println(evt.id + ", " + evt.key + ", " + evt.modifiers) ;
      if (evt.id == Event.WINDOW_DESTROY) 
      {
         hide () ;
         dispose () ;
         System.exit (0) ;
         return false ;
      }
      else return super.handleEvent(evt) ;
   }

   public static void main (String args[])
   {
      AZERTY azerty = new AZERTY () ;
      azerty.pack() ;
      azerty.show() ;
   }
}
/////////////////////////////////////////////////////////////////////////////


Comments
WORK AROUND none
11-06-2004

PUBLIC COMMENTS With JDK 1.0.2 or 1.1_final using a french keyboard under Solaris 2.x, when you press the '&' key In a TextField component you get a '1' character. This problem occur for many character
10-06-2004

EVALUATION [naoyuki 3/22/97] This bug is the same problem with 4014612: keyboard input problem with Japanese type-5 keyboard. This bug is fixed in JDK1.1.1 release. [christian.gajan@France 1997-03-27] I'm not sure this bug is the same problem with 4014612 because I tested the AZERTY.class application with the new JDK 1.1.1 and the problem always occurs
27-03-1997