I've tried a lot to remove the stage buttons in my JFX project frame. I'm using a decorator to fresh up the design.
I only want to remove the maximize, resize and minimize buttons. The close button should not be removed. Can you give me a tip, how I can deal with this?
JFXDecorator decorator = new JFXDecorator(primaryStage, gridContainer);
I've tried this to remove the resizable button this way:
primaryStage.setResizable(false);
.jfx-decorator{
-fx-decorator-color: #2196F3;
-fx-text-fill: black;
-fx-background-color: transparent;
-fx-border-color: #2196F3;
}
.jfx-decorator .jfx-decorator-buttons-container{
-fx-background-color: -fx-decorator-color;
}
.jfx-decorator .resize-border{
-fx-border-color: #2196F3;
-fx-border-width: 0 4 4 4;
}
.jfx-decorator .jfx-decorator-buttons{
-fx-background-color: red;
}