A JavaFX undecorated stage which can fully be customized
This CustomStage is a JavaFX undecorated Stage. To put it simple, CustomStage is a Window and you can add different views (FXML files) to the window (like changing the scene of the window) as you prefer. The basic problem making the Stage "Undecorated" is that you will not be able to,
- Resize the window using mouse.
- Lose the default action buttons.
- Move the window (by dragging) (etc.)
So, CustomStage will get rid of all of these issues since it includes,
- Window resizing (the ResizeHelper class is used here with minor modifications) -> ResizeHelper class
- Default action buttons and their behaviour (close, maximize/restore, minimize)
- Window dragging
- Window is automatically scaled as for screen resolution
- Very responsive
- Apart from those, this is called CustomStage since it can be customized as you wish
- Easy. You can get your customized Stage using the CustomStageBuilder class. This class includes all the methods you will need to customize your window.
- Download and add as a dependancy to your project
- Binaries can be found at CustomStage binaries
- An example is provided in How to use a CustomStage for a complete implementation
- To achieve transparency, see Transparent CustomStage
- CustomStage with custom icons for (close,minimize,maximize/restore) buttons CustomStage with custom icons
Feel free to post issues in "Issues" for further improvements