Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095347

Owned and Modal Windows should not be minimizable/maximizable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u40
    • javafx

    Description

      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:

      Attachments

        Issue Links

          Activity

            People

              ddhill David Hill (Inactive)
              ddhill David Hill (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: