Mercurial > hg > icedtea9-forest > jdk
changeset 5536:4f39a13e74c6
7166437: [macosx] Support for Window.Type.UTILITY on the Mac
Summary: Apply the native UTILITY style for UTILITY Java windows
Reviewed-by: art
author | anthony |
---|---|
date | Fri, 11 May 2012 16:11:17 +0400 |
parents | 18842bb6676a |
children | 689c0cd214e8 |
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 Thu May 10 11:47:56 2012 -0700 +++ b/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;