Skip to content

khanhtd36/FXHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

FXHelper

FXHelper was created to reduce the pain in the butt of repetitive work with FXMLLoader, FXThread.

Setup:

include FXHelper 2.0.jar in your project download

Usage:

  • To create a window and open it
    FXHelper.openWindowAsync(MainLauncher.class.getResource("/views/main_window.fxml"))
            .open();
  • To create a window and do whatever you want on Window Created
    FXHelper.createWindowAsync(MainLauncher.class.getResource("/views/main_window.fxml"))
            .onDone((stage, scene, controller) -> {/*your code here*/});
            .create();
  • To load FXML File and do whatever you want on Fxml file Loaded
    FXHelper.loadFXMLAsync(MainLauncher.class.getResource("/views/main_window.fxml"))
            .onLoaded((root, controller) -> {/*your code here*/})
            .load();

About

A tiny Java lib to work with FXMLLoader at ease

Resources

Stars

Watchers

Forks

Packages

No packages published