Made a window without a title:
@Override public void start(Stage stage) throws Exception { String fxmlFile = "/fxml/MainDialog.fxml"; FXMLLoader loader = new FXMLLoader(); Parent root = (Parent) loader.load(getClass().getResourceAsStream(fxmlFile)); stage.setScene(new Scene(root)); **stage.initStyle(StageStyle.UNDECORATED);** stage.setResizable(false); stage.show(); }
You need to make it possible to drag the window while holding the paint on any area of the window. How to ask it? Most likely there is a property, but I can not find it.