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

Need to document that an owned window cannot be minimized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u60
    • 8u40
    • javafx
    • Windows

      The following example illustrate the issue. The "Slave" windows cannot be iconify.

      It was working with previous jdk8 releases.


      /*
       * To change this license header, choose License Headers in Project Properties.
       * To change this template file, choose Tools | Templates
       * and open the template in the editor.
       */
      package javafxapplication50;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.TextArea;
      import javafx.stage.Stage;
      import javafx.stage.StageStyle;

      /**
       *
       * @author Daniel
       */
      public class JavaFXApplication50 extends Application {

          private Stage stage;

          @Override
          public void start(Stage primaryStage) {

              Scene scene = new Scene(new TextArea("I'm the master"));

              primaryStage.setTitle("Master");
              primaryStage.setScene(scene);
              primaryStage.show();

              stage = new Stage(StageStyle.DECORATED);
              stage.initOwner(primaryStage);

              final Scene scene2 = new Scene(new TextArea("I'm a slave"));
              stage.setTitle("Slave");
              stage.setScene(scene2);
              stage.showAndWait();

          }

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }

      }

            ddhill David Hill (Inactive)
            dweiljfx Daniel Weil (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: