A JavaFX undecorated stage which can fully be customized
If this project is helpful to you and love my work and feel like showing love/appreciation, would you like to buy me a coffee?
An Implementation See the code in wiki at "A complete implementation"
Checkout the CustomStage Wiki for more examples and documentation.
Project_Name : Brief_Description
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, 1) Resize the window using mouse. 2) Lose the default action buttons. 3) Move the window (by dragging) (etc.)
So, CustomStage will get rid of all of these issues since it includes, 1) Window resizing (the ResizeHelper class is used here with minor modifications) -> ResizeHelper class 2) Default action buttons and their behaviour (close, maximize/restore, minimize) 3) Window dragging
Starting from version 1.3.1 CustomStage releases are/will be available through JCenter and MavenCentral
<dependency>
<groupId>lk.vivoxalabs.customstage</groupId>
<artifactId>CustomStage</artifactId>
<version>1.3.2</version>
</dependency>
dependencies {
compile 'lk.vivoxalabs.customstage:CustomStage:1.3.2'
}
Add jitpack as a repository
repositories {
maven { url 'https://jitpack.io' }
}
Add dependancy
dependencies {
compile 'com.github.Oshan96:CustomStage:v1.3.1'
}
Add jitpack as a repository
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add dependancy
<dependency>
<groupId>com.github.Oshan96</groupId>
<artifactId>CustomStage</artifactId>
<version>v1.3.1</version>
</dependency>
CustomStage API Documentation can be found here : CustomStage Documentation
Feel free to post issues in "Issues" for further improvements