From 50d1683efd10a5bcc0f80296d7562a42d9cda2f0 Mon Sep 17 00:00:00 2001 From: Anthony Petrov Date: Fri, 11 May 2012 16:11:17 +0400 Subject: [PATCH] 7166437: [macosx] Support for Window.Type.UTILITY on the Mac Apply the native UTILITY style for UTILITY Java windows Reviewed-by: art --- jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java index bfaab65d196..efad23e636e 100644 --- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java +++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java @@ -312,6 +312,10 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo 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;