JDK-4833667 : Deiconizing a JInternalFrame with double-click moves focus
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,1.4.1
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2003-03-17
  • Updated: 2006-11-07
Related Reports
Relates :  
Relates :  
Description

Name: jk109818			Date: 03/17/2003


FULL PRODUCT VERSION :
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)

FULL OS VERSION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
After an iconized JInternalFrame has been deiconized, the focus owner moves one field forward as if TAB had been pressed.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start SwingSet2 and do the following:
1. Switch to Windows Style Look & Feel
2. Note that the focus owner is now on the top-left fish-button within the "Internal Frame Generator" JInternalFrame.
3. Click the Minimize-Button of this JInternalFrame.
4. Deiconize this JInternalFrame again by double-clicking the icon. Note: Clicking the restore button within the icon does not show the bug.



EXPECTED VERSUS ACTUAL BEHAVIOR :
The focus owner should still be the top-left fish-button within "Internal Frame Generator" JInternalFrame, as it was before the frame was iconized.

The focus owner has moved to the top-right fish-button within "Internal Frame Generator" JInternalFrame.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
see SwingSet2.
---------- END SOURCE ----------
(Review ID: 182029) 
======================================================================

Comments
EVALUATION This is reproducible since 1.4. There are a number of issues with focus management in internal frames that are currently being investigated. ###@###.### 2003-03-18 I belive this is happening because the last focus owner was being recorded even though we are in icon mode. This should not be done. ###@###.### 2004-09-03
18-03-2003