Skip to content

A JavaFX UI framework to create fully customized undecorated windows

License

Notifications You must be signed in to change notification settings

Oshan96/CustomStage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomStage

A JavaFX undecorated stage which can fully be customized

Latest Version Licence (https://img.shields.io/github/license/Oshan96/CustomStage.svg) Total Downloads

Overview

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

What else?

  • 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

How?

  • Easy. You can get your customized Stage using the CustomStageBuilder class. This class includes all the methods you will need to customize your window.

How to use?

How to use a CustomStage?

CustomStage

Transparent CustomStage

CustomStage with custom icons

Any issue detected?

:D

Feel free to post issues in "Issues" for further improvements