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

Caps Lock key problem: can't get low case characters at all

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5, windows_95, windows_nt
    • Verification:
      Not verified

      Backports

        Description



        Name: mc57594 Date: 02/27/97


        1. Press Caps Lock key.
        2. Start Java application.
        3. You can't get low case characters, it doesn't react on Caps
           Lock anymore.


        company - US West , email - ###@###.###
        ======================================================================

        On NT4.0 Caps-lock doesn't seem to work with text fields.
        1. run the supplied app
        2. type some test in the text box
        3. press the caps-lock key
        4. type some more.

        import java.awt.*;
        import java.io.*;
        import java.util.*;
        import java.lang.*;
        import java.awt.event.*;

        public class InputTest
        {
          static TextTest text;
          static InputTest test;
          
          static public void main(String args[])
            {
              test = new InputTest();
              text = new TextTest(test);
            }
        }


        class TextTest
        {
          public InputTest pmt2;
          public Frame f;
          public TextTest(InputTest pmt2)
            {
              this.pmt2 = pmt2;
              
              //Create frame
              f = new Frame();
              f.setLayout(new FlowLayout());
              f.setTitle("InputTest");
              f.setSize(400, 400);
              
              
              //Add textfield
              f.setLayout(new FlowLayout());
              TextField tf = new TextField("On win32 CAPS-LOCK has no effect");
              f.add(tf);
                
              //Pack and show frame
              f.pack();
              f.show();
            }
        }

        import java.awt.*;
        import java.io.*;
        import java.util.*;
        import java.lang.*;
        import java.awt.event.*;

        public class InputTest
        {
          static TextTest text;
          static InputTest test;
          
          static public void main(String args[])
            {
              test = new InputTest();
              text = new TextTest(test);
            }
        }


        class TextTest
        {
          public InputTest pmt2;
          public Frame f;
          public TextTest(InputTest pmt2)
            {
              this.pmt2 = pmt2;
              
              //Create frame
              f = new Frame();
              f.setLayout(new FlowLayout());
              f.setTitle("InputTest");
              f.setSize(400, 400);
              
              
              //Add textfield
              f.setLayout(new FlowLayout());
              TextField tf = new TextField("On win32 CAPS-LOCK has no effect");
              f.add(tf);
                
              //Pack and show frame
              f.pack();
              f.show();
            }
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehawkessunw Eric Hawkes (Inactive)
                  Reporter:
                  mchamnessunw Mark Chamness (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: