7166437: [macosx] Support for Window.Type.UTILITY on the Mac

Apply the native UTILITY style for UTILITY Java windows

Reviewed-by: art
This commit is contained in:
Anthony Petrov 2012-05-11 16:11:17 +04:00
parent 49252e4667
commit 50d1683efd

View File

@ -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;