7166437: [macosx] Support for Window.Type.UTILITY on the Mac
Summary: Apply the native UTILITY style for UTILITY Java windows
Reviewed-by: art
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java Thu May 10 11:47:56 2012 -0700
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java Fri May 11 16:11:17 2012 +0400
@@ -312,6 +312,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;