Kaito :
public class MyPopUp extends Stage {\n public MyPopUp () {\n super();\n this.setTitle(\"Pop\");\n this.setResizable(false);\n // The important part\n this.initModality(Modality.APPLICATION_MODAL);\n\n BorderPane borderPaneOptionPane = new BorderPane();\n borderPaneOptionPane.setCenter(new TextArea()); // For example\n\n Button closeButton = new Button(\"Close\");\n closeButton.setOnAction(event -> {\n this.hide();\n });\n\n borderPaneOptionPane.setPadding(new Insets(5));\n\n Scene s = new Scene(borderPaneOptionPane);\n this.setScene(s);\n}}\n\n\nthen simply use .show method to set it visible.\n\nHope I could help you.\n\nGreetings Kaito",
2015-07-29T11:11:50