public static void main(String[] args) throws Exception { DefaultInMemoryConfig config = new DefaultInMemoryConfig(); config.registerDefaultActions(); config.getClientDolphin().getClientConnector().setUiThreadHandler(new JavaFXUiThreadHandler()); registerApplicationActions(config); javafx.application.Application.launch(solrTest.Main.class); }
public static void main(String[] args) { try { Application.launch(GUI.class, args); } catch (Exception e) { e.printStackTrace(); } }
public static void main(String[] args) { // Check folder consistency FolderFileManager.checkFolders(); // Download latest info from Dropbox and load the data to RAM Manager.INSTANCE.downloadData(); // IMPORTANT: loadData is called after downloading the data and extracting it // If the data fetch fails, loadData is called (in the catch of the try catch part of // downloadData) // Manager.INSTANCE.loadData(); Runtime.getRuntime() .addShutdownHook( new Thread( new Runnable() { @Override public void run() { // Save all data from RAM and upload it to Dropbox. saveData calls uploadData Manager.INSTANCE.saveData(); } })); // ----- Delete any test code from this line ----- // ----- To this line ----- Application.launch(Main.class, args); }
@Test public void mainMethodLaunchesTheApplication() { mockStatic(Application.class); main(null); verifyStatic(); launch(); }
@BeforeClass public static void setupOnce() { // Start the Application new Thread(() -> Application.launch(MyApp.class, (String[]) null)).start(); try { if (!launchLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)) { throw new AssertionFailedError("Timeout waiting for Application to launch"); } } catch (InterruptedException ex) { AssertionFailedError err = new AssertionFailedError("Unexpected exception"); err.initCause(ex); throw err; } }
public static void main(String[] args) { Application.launch(Main.class, args); }
public static void main(String args[]) { Application.launch(RNGDominoSimulation.class, (java.lang.String[]) null); }
/** @param args the command line arguments */ public static void main(String[] args) { Application.launch(Main.class, (java.lang.String[]) null); }
public static void main(String[] args) { boolean nio = false, server = false, client = false, multicast = false; Getopt g = new Getopt("MultiChat", args, "a:dhmnp:sc"); int c; while ((c = g.getopt()) != -1) { switch (c) { case 'a': // set the ip address HOST = g.getOptarg(); break; case 'd': // Mode debug (log dans la console) MyLogger.setConsoleMsg(true); break; case 'h': System.out.println(msgHelp); try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } System.exit(0); case 'm': // mode multicast multicast = true; break; case 'n': // mode client nio = true; break; case 'p': // Option -p pour spécifier port PORT = Integer.parseInt(g.getOptarg()); break; case 's': server = true; break; case 'c': // option -c pour lancer client: client = true; break; case '?': break; default: System.out.print("getopt() returned " + c + "\n"); } } if (MyLogger.isConsoleMsg()) { MyLogger.init(false); } else { MyLogger.init(true); } if (client) { if (multicast) { MainClient.setISMULTICAST(true); } else { MainClient.setISMULTICAST(false); } MainClient.setHOST(HOST); MainClient.setPORT(PORT); Application.launch(MainClient.class, args); } else if (server) { MainServer.setHOST(HOST); MainServer.setPORT(PORT); if (!nio) { // option -s pour lancer serveur (par défaut sans NIO): MainServer.main(); } else { // -s -n pour lancer un serveur NIO: MainServer.mainNIO(); } } }
public static void main(String[] args) { // Application.setUserAgentStylesheet(null); // StyleManager.getInstance().addUserAgentStylesheet("/css/styles.css"); Application.launch(args); }
@Test public void test() { Application.launch(ColorPickerApp.class); }
@Test public void test() { Application.launch(TreeTableViewAddDeleteRowsApp.class); }
public static void main(String[] args) { Application.launch(args); }
public static void main(String[] args) { // TODO Auto-generated method stub Application.launch(args); }
public static void main(String[] args) { Application.launch(BlackmarketApplication.class, args); }
@Test public void test() { // fail("Not yet implemented"); Application.launch(TextInputDialogApp.class); }
@BeforeClass public static void setup() throws Exception { new Thread(() -> Application.launch(TestApp.class)).start(); startupLatch.await(); }
@Test public void test() { // fail("Not yet implemented"); Application.launch(MouseLocationApp.class); }
/** * Método executado para iniciar o sistema. * * @param args String[] */ public static void main(final String[] args) { Application.launch(GerenciadorLojaApplication.class); }
public static void main(String[] args) throws IOException { Application.launch(); }
public void launch(Class<? extends Application> appClass, boolean headless, String... appArgs) { initMacosxEmbedded(headless); initMonocleHeadless(headless); Application.launch(appClass, appArgs); }
public static void main(String[] args) { Application.launch(FXMLSample.class, args); }
public static void main(String[] args) { Application.launch(ControlTest.class, args); }
@Test public void test() { Application.launch(SwingInFXApp.class); }
public static void main(String[] args) { launch(args); }
@Override protected void doExecute(OptionSet options) { BitsquareApp.setEnvironment(new BitsquareEnvironment(options)); javafx.application.Application.launch(BitsquareApp.class); }