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

REGRESSION: JInternalFrame misplaces focus after menu is closed by clicking inside of JInternalFrame

XMLWordPrintable

    • b46
    • generic
    • generic

      JInternalFrame transfers focus to the JRootPane after menu is closed by clicking on a JLabel inside the JInternalFrame. I have added debug info to the Component.requestFocusHelper() method and found that focus is being incorrectly set by method introduced by fix for bug
      4302764: focus is not set in JInternalFrame

      To reproduce: compile and run attached program, click button 'Test button' (button should receive focus), open menu 'File' in JInternalFrame and then click on the 'Just a label...' JLabel inside the frame. This will close the menu but focus will not return to JButton. I've added focus monitor which repoorts how the keyboard focus is being transferred across the components to the console.
      ###@###.### 2005-06-07 15:40:28 GMT

            mbronsonsunw Mike Bronson (Inactive)
            kizune Alexander Zuev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: