We're trying to use the wizard and allow resizing/maximising the window.
When using the below code snippet I can resize windows just fine, and on any page I use the maximize button on Windows it maximizes the window fine, but as soon as I use the next/previous button it becomes wonky and resizes the Pane but the Windows-bar on top still shows it as maximized and getting the stage maximizedProperty also says it's still maximized.
Is there some way of making the Wizard allow the maximized status or is it not possible?
ControlsFX: 11.2.1
JavaFX: 17.0.2
public class TestWizard {
public TestWizard() {
WizardPane page1 = new WizardPane();
page1.setContent(new Text("PAGE ONE"));
WizardPane page2 = new WizardPane();
page2.setContent(new Text("PAGE TWO"));
WizardPane page3 = new WizardPane();
page3.setContent(new Text("PAGE THREE"));
Wizard wizard = new Wizard();
wizard.setFlow(new Wizard.LinearFlow(page1, page2, page3));
Stage stage = (Stage) page1.getScene().getWindow();
stage.setResizable(true);
wizard.showAndWait();
}
}
We're trying to use the wizard and allow resizing/maximising the window. When using the below code snippet I can resize windows just fine, and on any page I use the maximize button on Windows it maximizes the window fine, but as soon as I use the next/previous button it becomes wonky and resizes the Pane but the Windows-bar on top still shows it as maximized and getting the stage maximizedProperty also says it's still maximized.
Is there some way of making the Wizard allow the maximized status or is it not possible? ControlsFX: 11.2.1 JavaFX: 17.0.2