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

keyboard focus problem with Jmenu

    Details

      Description

      The customer is facing issues with the Jmenu and the internalframes when using swing. Basically if there are 2 internalframes with the same mnemonics,
      then changing the focus from one internal frame to another using the
      mouse does not change the keyboard focus.

       The attached test case displays this fact more clearly. In the test case, create 2 internal frames. Both of them have the same menu 'File' which can be popped up using the Alt+f mnemonic.
       Focus on internal frame 1 and then click to popup the File menu. Without closing the menu, now shift the focus to the internal frame 2 (using the mouse click). If we use the mnemonic Alt+f, we observe that the File menu of the internal frame 1 popups even though the focus is on internal frame 2.
      I have tested this behavior on 1.4.2_03 and 1.4.2_05 and the problem persists. However we do not see any problem on 1.5 beta-1 (meaning the mnemonic opens up
      the menu for the internal frame which has the focus.)
      The problem is also seen consistently seen on Windows 2000. We think there is problem in JInternalFrame itself where the "lastFocusOwner" is not getting recycled properly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: