On Tue, 21 Oct 2025 23:54:55 GMT, Michael Strauß <[email protected]> wrote:
> Adds the `Dialog.headerBar` property, which allows developers to specify a > custom `HeaderBar` when the dialog uses the `EXTENDED` stage style. The > property is ignored for all other stage styles. Hi. Another bug, a slightly more serious one this time. Dialogs cannot be re-used. E.g., sequentially calling showAndWait() twice on the same instance, does not work:  This works fine on older JFXs:  Steps to reproduce: public class DialogBugDemoThree extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { final Dialog<String> dialog = new Dialog<>(); dialog.getDialogPane().setContent(new Label("Label")); ButtonType okButton = new ButtonType("OK", ButtonBar.ButtonData.OK_DONE); dialog.getDialogPane().getButtonTypes().addAll(okButton, ButtonType.CANCEL); // Show once dialog.showAndWait(); // Show twice // This will NOT work (it shows a tiny window frame with no content) dialog.showAndWait(); } } ------------- PR Comment: https://git.openjdk.org/jfx/pull/1943#issuecomment-3440326580
