changeset 4987:fa84dc221972

7166437: [macosx] Support for Window.Type.UTILITY on the Mac Summary: Apply the native UTILITY style to Java UTILITY windows Reviewed-by: kizune, serb
author anthony
date Tue, 15 May 2012 15:24:54 +0400
parents eb7b250d92e6
children b5b68b7b6aa6
files src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java	Tue May 15 11:45:42 2012 +0400
+++ b/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java	Tue May 15 15:24:54 2012 +0400
@@ -313,6 +313,10 @@
             styleBits = SET(styleBits, NONACTIVATING, true);
         }
 
+        if (Window.Type.UTILITY.equals(target.getType())) {
+            styleBits = SET(styleBits, UTILITY, true);
+        }
+
         if (target instanceof javax.swing.RootPaneContainer) {
             javax.swing.JRootPane rootpane = ((javax.swing.RootPaneContainer)target).getRootPane();
             Object prop = null;