How to remove JavaFX stage buttons (minimize, maximize, close)? Can\'t find any according Stage
methods, so should I use style for the stage? It\'s necessary fo
I´m having the same issue, seems like an undecorated but draggable/titled window (for aesthetic sake) is not possible in javafx at this moment. The closest approach is to consume the close event.
stage.setOnCloseRequest(new EventHandler() {
@Override
public void handle(WindowEvent event) {
event.consume();
}
});
If you like lambdas
stage.setOnCloseRequest(e->e.consume());