JDK-6226075 : REG: Focusable Frame loses focus when minimizing and restoring a non-focusable frame, win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-02-07
  • Updated: 2011-01-19
  • Resolved: 2005-05-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Relates :  
Description
I have 2 frames shown on the screen each having few components. One of the frames is non-focusable. Initially when they were shown focus is with a button on the focusable frame. I am minimizing and restoring the non-focusable frame using mouse. After this, the button on the focusable frame loses focus. This is incorrect. Focus must always stay with Focusable Frame when the user interacts with a non-focusable frame. 

This is noticed only on WinXP, since 1.4.2. Not reproducible on earlier releases. Not reproducible on XToolkit. Reproducible on Tiger as well as Mustang.

Run the attached test. You would see 2 frames. Focusable frame will have focus initially. Wait for 5 seconds. Minimize the non-focusable frame to the taskbar and restore it. Now if the focusable frame loses focus, the bug is reproduced. If not reproducible at the first try, repeat the minimize/restore action couple of more times.
###@###.### 2005-2-07 10:18:50 GMT

Comments
EVALUATION Exists on Mustang b20 but partially fixed in b23: If I minimize Non-Focusable Frame and then restore it, then focus goes out from Focusable Frame. Non-ficusable frame has no focus too. If I maximize Non-Focusable Frame and then restore it, then focus gains Focusable Frame. (This is what have changed from b20) ###@###.### 2005-2-07 10:36:01 GMT I see that the current behaviour is the same as in JDK1.4.2. The frame being minimized looses focus and then being restored gains it back. Also I see no problem with maximizing. So, I consider it to be fixed due to focus fixes integrated in Mustang-b23. ###@###.### 2005-05-12 08:43:43 GMT
07-02-2005