# HG changeset patch # User anthony # Date 1336738277 -14400 # Node ID f9991bc4fdde99e6be964a5cb59563f1086df00b # Parent fa5227d43363dd36c19751fca5f5fde0ac7eeaa5 7166437: [macosx] Support for Window.Type.UTILITY on the Mac Summary: Apply the native UTILITY style for UTILITY Java windows Reviewed-by: art diff -r fa5227d43363 -r f9991bc4fdde jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java --- 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;