-
Bug
-
Resolution: Fixed
-
P3
-
jfx11, 8u251, jfx14
-
Mac OS 10.15.5
-
generic
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8249665 | jfx16 | Kevin Rushforth | P3 | Resolved | Fixed | |
JDK-8249540 | 8u271 | Kevin Rushforth | P3 | Resolved | Fixed | b02 |
JDK-8252342 | jfx11.0.9 | Kevin Rushforth | P3 | Resolved | Fixed |
Run the below sample on a MacOS Catalina. Setting iconified property to true has no effect on an undecorated stage.
```
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class TestApp extends Application {
@Override
public void start(Stage stage) {
stage.initStyle(StageStyle.UNDECORATED);
Button button = new Button("Minimize");
button.setStyle("-fx-background-color: red;");
button.setOnAction(evt -> stage.setIconified(true));
Scene scene = new Scene(button); stage.setScene(scene);
stage.centerOnScreen();
stage.show();
}
}
```
Expected
========
Pressing the button should minimize the application
Actual
========
Pressing the button does nothing
```
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class TestApp extends Application {
@Override
public void start(Stage stage) {
stage.initStyle(StageStyle.UNDECORATED);
Button button = new Button("Minimize");
button.setStyle("-fx-background-color: red;");
button.setOnAction(evt -> stage.setIconified(true));
Scene scene = new Scene(button); stage.setScene(scene);
stage.centerOnScreen();
stage.show();
}
}
```
Expected
========
Pressing the button should minimize the application
Actual
========
Pressing the button does nothing
- backported by
-
JDK-8249540 [macOS] Undecorated stage does not minimize
- Resolved
-
JDK-8249665 [macOS] Undecorated stage does not minimize
- Resolved
-
JDK-8252342 [macOS] Undecorated stage does not minimize
- Resolved
- relates to
-
JDK-8249202 [macOS] setIconified(false) fails to restore undecorated stage
- Closed
-
JDK-8214046 [macosx] Undecorated Frame does not Iconify when set to
- Resolved
(2 links to)