JDK-6224544 : PIT: Non-focusable frame becomes active when it is iconified and restored, win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-02-02
  • Updated: 2011-04-28
Related Reports
Relates :  
Relates :  
Description
I have set the focusable window state of a frame to false and showing it on the screen. Since the frame is non-focusable, it can not be active and the title bar appears in gray color. DefaultKeyboardFocusManager.getActiveWindow() returns null. But when I minimize the frame and restore it, DKFM.getActiveWindow() returns this frame instance even though it has not become active (title bar still appears in gray color). This is happening only on Win32 and not on other platforms. The same bug has been filed before but it's been fixed partially in the current PIT build - 6181725: Non-focusable frame becomes active when maximized, on win32.

This is reproducible on the following PIT build:
java version "awt.pit-jcg-win-03-2005-01-26-Wed-int.mustang"
Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2005-
01-26-Wed-int.mustang)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b20, mixed mode)

I have attached a sample test. Execute the sample test on WinXP. You would see a frame with a gray title bar. Click the button. you would see 'null' being printed out on the console. Now minimize the frame to the taskbar and restore it. Now click on the button. If you see frame instance being printed on the console, the bug is reproduced.
###@###.### 2005-2-02 12:32:08 GMT

Comments
EVALUATION Using current PIT build I noticed that newly appearing frame has focus just after start. This behaviour is different from Mustang b21. ###@###.### 2005-2-02 14:51:10 GMT I don't see the difference in behaviour in mustang-b21 and mustang-b24. The frame doesn't get focus after restoring but really gets activated (though, retaining gray title bar). But even worse behaviour I see with JDK1.4.2 where the frame gets activated completely (visually changing). So, this is not regression. Requires more investigation in Dolphin. ###@###.### 2005-05-12 08:41:09 GMT
02-02-2005