-
Bug
-
Resolution: Fixed
-
P3
-
8u40
as part of RT-38363 it was determined that owned and modal windows should not have min/max decorations.
This will help meet user expectations, after all minimizing a modal window reveals a unresponsive parent.
diff --git a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
@@ -178,6 +178,9 @@
case DECORATED:
windowMask |=
Window.TITLED | Window.CLOSABLE | Window.MINIMIZABLE | Window.MAXIMIZABLE;
+ if (ownerWindow != null || modality != Modality.NONE) {
+ windowMask &= ~(Window.MINIMIZABLE | Window.MAXIMIZABLE);
+ }
resizable = true;
break;
case UTILITY:
This will help meet user expectations, after all minimizing a modal window reveals a unresponsive parent.
diff --git a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
@@ -178,6 +178,9 @@
case DECORATED:
windowMask |=
Window.TITLED | Window.CLOSABLE | Window.MINIMIZABLE | Window.MAXIMIZABLE;
+ if (ownerWindow != null || modality != Modality.NONE) {
+ windowMask &= ~(Window.MINIMIZABLE | Window.MAXIMIZABLE);
+ }
resizable = true;
break;
case UTILITY:
- relates to
-
JDK-8094625 Glass/GTK should support removing Window.MINIMIZABLE, Window.MAXIMIZABLE
- Resolved
-
JDK-8097085 [Dialogs] Alert Dialog restores itself after you minimize it
- Closed
-
JDK-8094625 Glass/GTK should support removing Window.MINIMIZABLE, Window.MAXIMIZABLE
- Resolved
-
JDK-8095664 Need to document that an owned window cannot be minimized
- Resolved