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

CANNOT INPUT LOWERCASE LETTERS IF CAPS LOCK IS SET DURING STARTUP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1, 1.1.3, 1.1.4, 1.1.5
    • client-libs
    • None
    • x86
    • windows_nt

      Name: sg39081 Date: 09/02/97


      If the CAPS LOCK is set when you start the browser,
      you can not remove the CAPS LOCK once it is set.

      Therfore, everything has to be input with CAPS unless
      you hold down the shift key.
      ======================================================================
      Another report, sheri.good@Eng 1997-10-27:

      We are facing a problem in TextField class.
      When running a java application with caps lock on
      from command line the text field inputs all
      the characters in upper case even when we change
      the cap lock to off.

      But when we run with caps lock off the caps lock
      status is correctly interpreted ie., when caps
      lock is on the characters are displayed in upper
      case and when off it is displayed in lower case.

      We try to handle the caps lock event.

      Is it a bug ? or we have to handle anything.

      Please give us solution for this probelm immediately
      since we are facing this problem in live projects
      which has many textfield components.



      ralph.kar@Eng 1997-12-19
      After testing the problem on JDK1.1.5 it turns out that textfields do not
      take the CAPS_LOCK key into account at all. It is not possible to switch from
      lowercase to uppercase and vice versa. The letters always show up in the case
      that was set on app startup.
      And here is a testcase for the problem:

      // Imports
      import java.awt.*;
      import java.awt.event.*;

      /*
       * Classname: testApp
       */
      public class testApp extends Frame implements WindowListener
      {
      // Class member variables
      TextField tField;

      // Class member methods
      /*
      * Methodname: testApp()
      */
      public testApp()
      {
      // Call the constructor of the superclass
      super("testApp (4076003)");

      // Create all necessary elements
      tField = new TextField("");

      // Set the layout and add all elements to the frame
      this.add("Center", tField);

      // Set the size of the frame and show it
      this.addWindowListener(this);
      this.pack();
      this.setSize(200, 70);
      this.setVisible(true);
      }

      /*
      * Methodname: main()
      */
      static public void main(String argv[])
      {
      // Create a new instance of testApp
      new testApp();
      }

      /*
      * Description: Implementation for the WindowListener interface.
      */
      public void windowActivated(WindowEvent e) {}
      public void windowClosed(WindowEvent e) {}
      public void windowDeactivated(WindowEvent e) {}
      public void windowDeiconified(WindowEvent e) {}
      public void windowIconified(WindowEvent e) {}
      public void windowOpened(WindowEvent e) {}
      public void windowClosing(WindowEvent e)
      {
      System.exit(0);

      return;
      }
      }
      ======================================================================
      sheri.good@Eng 1998-03-09:

      In a test area or text field do the following
      test.

      1. Make sure the caps lock key is off in key board
      2. start any java application in which at least
         one text area or text field is there.
      3. Now type some letters or words. You will see these
         letters are in small letters.
      4. Now press caps lock key and try to write some
         words or letters.
      5. It is expected that capital letters will be there.
         But it is not.

         This happened in Nt 4.0, Windows 95 with
         the JDK version 1.1.4 , 1.1.5

            rkhansunw Robi Khan (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: