-
Bug
-
Resolution: Fixed
-
P4
-
8u40
-
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);
}
}
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);
}
}
- relates to
-
JDK-8095347 Owned and Modal Windows should not be minimizable/maximizable
-
- Resolved
-