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