JFXButton closeButton = new JFXButton("ACCEPT"); closeButton.getStyleClass().add("dialog-accept"); closeButton.setOnAction(event -> alert.hideWithAnimation()); layout.setActions(closeButton); alert.setContent(layout);
if (animateClosing) { event.consume(); hideWithAnimation();
if (animateClosing) { event.consume(); hideWithAnimation();