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