All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.intellimate.izou.system.javafx.JavaFXInitializer Maven / Gradle / Ivy

The newest version!
package org.intellimate.izou.system.javafx;

import org.intellimate.izou.main.Main;
import javafx.application.Application;
import javafx.stage.Stage;

/**
 * Class to init JavaFX ToolKit - should be ignored
 */
public class JavaFXInitializer extends Application {

    /**
     * No param constructor needed by {@link javafx.application.Application}
     */
    public JavaFXInitializer() {
    }

    /**
     * Initializes JavaFX by starting the JavaFX ToolKit
     */
    public static void initToolKit() {
        Thread t = new Thread(Application::launch);
        t.start();
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Main.jfxToolKitInit.set(true);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy