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

Focus behavior incorrect on Swing Component with mnemonic keys

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • sparc
    • solaris_7

      I found out some incorrect behavior on Swing components with mnemonic key.

      The problems and the way to reproduce with the sample codes are as follows.

      1. Reproduce

       problem1) focus does not move with "TAB" key.
         
          1) invoke "java TestWindow"
             -> You can see a window which has focused "open a window" button
                and "clear" button.
          2) Press "TAB"
             -> you will see the focus move to "clear" button.
          3) Press "TAB" button again
             -> you will see the focus disappear on the "clear" button.
         
          After the above 3), the focus rectangle never appear.


       problem2) focus disappears with "alt-o" and then "alt-F4"

          1) invoke "java TestWindow"
          2) Press "alt-o"
             -> you will see a new subwindow show up and focus moves to the window.
          3) Press "alt-F4" button
             -> you will see the subwindow disappear and the focus also.
         
          After the above 3), the focus rectangle never appear.


       problem3) Subwindow size become smaller by clicking "open window" button and
                "alt-F4"

          1) invoke "java TestWindow"
          2) Press "alt-o"
             -> you will see a new subwindow show up and focus moves to the window.
          3) Press "alt-F4" button
             -> you will see the subwindow disappear and the focus also.
          4) Click "open a window" button with mouse
             -> you will see a new subwindow appear
          5) Press "alt-F4" button
          6) Try the above 4) and 5) some times
             -> you can see new subwindows become smaller by creating and quiting
                subwindow

      2. Configuration

         MPU & OS :
           # psrinfo -v
           Status of processor 0 as of: 12/19/01 13:31:42
            Processor has been on-line since 11/22/01 16:51:36.
             The sparcv9 processor operates at 296 MHz,
                   and has a sparcv9 floating point processor.
           # uname -a
           SunOS goedel 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-60

         Mem : 256 [MHz]
         JDK :
            java version "1.4.0-rc"
            Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
            Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)
       
      3. Note
         - I recommend to try the sample code on windows platform.
           On Windows platform, the swing components look to work correctly.
         - Although the behavior is a little different, similar issue happens
           with JDK1.3.1_01.


      2001-12-19
      ================================================================================

            prssunw Prs Prs (Inactive)
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: