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

menu bar accelerators are not active after the last JInternalFrame is closed

    XMLWordPrintable

    Details

      Description

      The menu bar accelerators are not active after the last JInternalFrame is closed. Calling requestFocus for the main panel & for the menu bar has no effect.

      Using Swing 1.0.1 and JDK 1.1.5 - see attached test case.

      To Reproduce: Open one or more JInternalFrames. Notice that the Ctrl-N
      (New) and Ctrl-O (Open) accelerators are functioning properly. Now
      close all of the JInternalFrames. Now the menu accelerators are no
      longer active. Click in one of the JLists or open a menu, close it,
      then try the accelerators; they're activated again. See VisDebug.java
      lines 1105-1111.

      i.e.
         // SWING-BUG - This is not accomplishing anything - the menu bar
         // accelerators are
         // not working after the last JInternalFrame is closed
         requestFocus ();
         m_menuBar.requestFocus ();
         }
      // SWING-BUG - the selected window loses focus when closing an unselected window

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gsaab Georges Saab
              Reporter:
              jbenoit Jonathan Benoit (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: