United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124554 [macosx] JWindow does ignore setAlwaysOnTop property
JDK-7124554 : [macosx] JWindow does ignore setAlwaysOnTop property

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-03-23
Project Name:
JDK
Resolved Date:
2012-03-05
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b11)

Related Reports
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-158 submitted 2011/07/13 by Yuri Nesterenko
JWindow setAlwaysOnTop(true) doesn't work. It works though for Window.
See an attached simple example. (You will see by the way that JWindow does ignore background color but it's another bug, and not in macosx-port).

                                    

Comments
EVALUATION

Author: Artem Ananiev Date: 25/Jul/11 02:53 PM
<span class=&quot;error&quot;>&#91;NSWindow setLevel:windowLevel&#93;</span> is the API to use to implement this.
 
Author: Yuri Nesterenko Date: 28/Jul/11 07:09 AM
Build: b200
AWT_ContainerPropertyTest/Automated/AlwaysOnTop/rfe4303256
                                     
2011-12-23
EVALUATION

A JWindow object is always a child window with either an explicit parent, or a shared invisible owner frame. Therefore, we always call NSWindow -addChildWindow: when showing a JWindow object. The root cause of the issue is that the -addChildWindow: resets the level of the child window to match that of the parent window. With this fix we restore the level back to its original value after the -addChildWindow: call, and as such preserve the always-on-top state of the child window.
                                     
2012-01-11
EVALUATION

8-na: the fix is integrated as a part of 7113349.
                                     
2012-03-23



Hardware and Software, Engineered to Work Together