[go: nahoru, domu]

Skip to content

Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls.

License

Notifications You must be signed in to change notification settings

NicolasSenetLarson/BorderlessScene

Repository files navigation

BorderlessScene

Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls.

Usage:

// Constructor using your primary stage and the root Parent of your content.
BorderlessScene scene = new BorderlessScene(yourPrimaryStage, yourParent);
yourPrimaryStage.setScene(scene); // Set the scene to your stage and you're done!

// Maximise (on/off) and minimise the application:
scene.maximise();
scene.minimise();

// To move the window around by pressing a node:
scene.setMoveControl(yourNode);

// To disable resize:
scene.setResizable(false);

// To switch the content during runtime:
scene.setContent(yourNewParent);

// Check if maximised:
Boolean bool = scene.isMaximised();

// Get windowed* size and position:
scene.getWindowedSize();
scene.getWindowedPosition();

*windowed = not maximised

About

Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages