< prev index next >
src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
Print this page
*** 380,391 ****
{
final boolean resizable = isFrame ? ((Frame)target).isResizable() : (isDialog ? ((Dialog)target).isResizable() : false);
styleBits = SET(styleBits, RESIZABLE, resizable);
if (!resizable) {
styleBits = SET(styleBits, ZOOMABLE, false);
- } else {
- setCanFullscreen(true);
}
}
if (target.isAlwaysOnTop()) {
styleBits = SET(styleBits, ALWAYS_ON_TOP, true);
--- 380,389 ----
*** 675,684 ****
--- 673,691 ----
}
this.visible = visible;
// Manage the extended state when showing
if (visible) {
+ /* Frame or Dialog should be set property WINDOW_FULLSCREENABLE to true if the
+ Frame or Dialog is resizable.
+ **/
+ final boolean resizable = (target instanceof Frame) ? ((Frame)target).isResizable() :
+ ((target instanceof Dialog) ? ((Dialog)target).isResizable() : false);
+ if (resizable) {
+ setCanFullscreen(true);
+ }
+
// Apply the extended state as expected in shared code
if (target instanceof Frame) {
if (!wasMaximized && isMaximized()) {
// setVisible could have changed the native maximized state
deliverZoom(true);
< prev index next >