Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4218892

Unable to enter '!' and '=A7' characters into AWT via the french =

XMLWordPrintable

    • 1.2.2
    • x86
    • windows_95, windows_nt



      Name: clC74495 Date: 03/10/99

      =20
      Carlos.Lucasius@Canada (March 10, 1999): See also bug 4201056
      (it only mentions problems with '!', not with '=A7' ).

      Original bug report follows:


      This problem appears under Windows98 and WindowsNT 4.0
      There was not such a problem under JDK1.1.x

      //Description: Using the Fr. keyboard driver (MS Win), exclamation '!' (and
      // also section sign '=A7') appear as question mark '?' in AWT comp's. (17=
      722)
      //Steps: 1) Install Fr keybd driver (on WinNT: Settings; Control Panel;
      // <Input Locales>; <Add>; French(Standard); <OK>; "Enable Indicator on
      // Taskbar" =3D=3D true; <OK>)
      // 2) Run this app. (JDK 1.2 -V)
      // 3) Switch to Fr keybd (the 'q' and 'a' have changed positions from En k=
      eybd)
      // 4) type '!' on Fr keybd (this is right-most key of the bottom
      // row -- _next_ to the right shift key)
      // exp: to see '!' displayed
      // act: '?' gets displayed
      // 5) type same key as step 4, plus the Shift key
      // exp: to see '=A7' displayed (Section sign)
      // act: '?' gets displayed

      //package jdkFrKeyBd;

      import java.awt.*;
      import java.awt.event.*;

      public class Frame1 extends Frame {
        TextField textField1 =3D new TextField();
        Label label1 =3D new Label();
        TextArea textArea1 =3D new TextArea();

        public Frame1() {
          enableEvents(AWTEvent.WINDOW_EVENT_MASK);
          try {
            jbInit();
          }
          catch (Exception e) {
            e.printStackTrace();
          }
        }

      //Overriden so we can exit on System Close
        protected void processWindowEvent(WindowEvent e) {
          super.processWindowEvent(e);
          if (e.getID() =3D=3D WindowEvent.WINDOW_CLOSING) {
            System.exit(0);
          }
        }

        private void jbInit() throws Exception {
          this.setSize(new Dimension(300, 300));
          this.setTitle("Fr keybd, Exclam. mark");
          textField1.setText("textField1");
          label1.setFont(new Font("Dialog", 1, 12));
          label1.setText("Using Fr. Keybd, unable to enter \'!\' (appears as \'?\=
      ')");
          textArea1.setText("textArea1");
          this.add(textField1, BorderLayout.CENTER);
          this.add(textArea1, BorderLayout.SOUTH);
          this.add(label1, BorderLayout.NORTH);
        }

        public static void main(String[] args) {
          Frame1 frame11 =3D new Frame1();
          frame11.setVisible( true);
        }

      }
      (Review ID: 55280)
      ======================================================================

            prssunw Prs Prs (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: