Example usage for javafx.application Application launch

List of usage examples for javafx.application Application launch

Introduction

In this page you can find the example usage for javafx.application Application launch.

Prototype

public static void launch(Class<? extends Application> appClass, String... args) 

Source Link

Document

Launch a standalone application.

Usage

From source file:Main.java

public static void main(String[] arguments) {
    Application.launch(Main.class, arguments);
}

From source file:com.eviware.loadui.launcher.LoadUIFXLauncher.java

public static void main(String[] args) {
    Application.launch(FXApplication.class, args);
}

From source file:eu.over9000.skadi.Main.java

public static void main(final String[] args) throws Exception {
    System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");

    printStartupInfo(args);//from   w ww .  jav  a 2s.co  m

    if (!JavaVersionUtil.checkRequiredVersionIsPresent()) {
        System.err.println("Skadi requires Java " + JavaVersionUtil.REQUIRED_VERSION + ", exiting");
        return;
    }

    if (!SingleInstanceLock.startSocketLock()) {
        System.err.println("another instance is up, exiting");
        return;
    }

    Application.launch(MainWindow.class, args);

    SingleInstanceLock.stopSocketLock();

    System.exit(0);
}

From source file:com.eviware.loadui.launcher.LoadUICommandLineLauncher.java

public static void main(String[] args) {
    Application.launch(CommandApplication.class, args);
}

From source file:Main.java

public static void main(String[] args) {
    Application.launch(Main.class, args);
}

From source file:com.wineshop.client.Main.java

/**
 * Main class that lauches the JavaFX app
 */
public static void main(String[] args) {
    Application.launch(Main.class, args);
}

From source file:com.eviware.loadui.launcher.LoadUILauncher.java

public static void main(String[] args) {
    for (String arg : args) {
        System.out.println("LoadUILauncher arg: " + arg);
        if (arg.contains("cmd")) {
            List<String> argList = new ArrayList<>(Arrays.asList(args));
            argList.remove(arg);/*from w ww  .  j ava  2  s .c  o m*/
            String[] newArgs = argList.toArray(new String[argList.size()]);
            Application.launch(CommandApplication.class, newArgs);
            return;
        }
    }

    Application.launch(FXApplication.class, args);

    // Is the below just old legacy code from JavaFX 1?

    //      System.setSecurityManager( null );
    //
    //      LoadUILauncher launcher = new LoadUILauncher( args );
    //      launcher.init();
    //      launcher.start();
    //
    //      new Thread( new LauncherWatchdog( launcher.framework, 20000 ), "loadUI Launcher Watchdog" ).start();
}

From source file:com.fishbeans.app.AppContextExt.java

protected static void launchApp(Class<? extends AppContextExt> appClass, String[] args) {

    AppContextExt.savedArgs = args;/*from  w  w w .j  av  a  2  s .c o m*/
    Application.launch(appClass, args);
}

From source file:com.deicos.lince.AbstractJavaFxApplicationSupport.java

protected static void launchApp(Class<? extends AbstractJavaFxApplicationSupport> appClass, String[] args) {

    AbstractJavaFxApplicationSupport.savedArgs = args;
    Application.launch(appClass, args);
}

From source file:com.sigamfe.AbstractJavaFxApplicationSupport.java

protected static void launchApp(Class<? extends AbstractJavaFxApplicationSupport> appClass, String[] args) {
    AbstractJavaFxApplicationSupport.savedArgs = args;
    Application.launch(appClass, args);
}