- Notifications
You must be signed in to change notification settings - Fork19
A JavaFX UI framework to create fully customized undecorated windows
License
Oshan96/CustomStage
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 ImplementationSee the code in wiki at "A complete implementation"
Checkout theCustomStage Wiki for more examples and documentation.
- Fork the repository and update with this readme'sProjects using CustomStage section in the following format adding your project details and do aPull Request!
Project_Name : Brief_Description
- RentLio : This is a vehicle reservation system. Which is made with JavaFX and also using hibernate and RMI.
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 isautomatically scaled as for screen resolution
- Veryresponsive
- Apart from those, this is calledCustomStage since itcan be customized as you wish
- Easy. You can get your customized Stage using theCustomStageBuilder class.This class includes all the methods you will need to customize your window.
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' }
- v1.3.1 CustomStage via JitPack (See the releases here :https://jitpack.io/#Oshan96/CustomStage)
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>
- Binaries can be found atCustomStage binaries
- An example is provided inHow to use a CustomStage for a complete implementation
- To achieve transparency, seeTransparent CustomStage
- CustomStage with custom icons for (close,minimize,maximize/restore) buttonsCustomStage with custom icons
CustomStage API Documentation can be found here :CustomStage Documentation
Feel free to post issues in "Issues" for further improvements
About
A JavaFX UI framework to create fully customized undecorated windows