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);
 }
Exemplo n.º 2
0
 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;
    }
  }
Exemplo n.º 6
0
 public static void main(String[] args) {
   Application.launch(Main.class, args);
 }
Exemplo n.º 7
0
 public static void main(String args[]) {
   Application.launch(RNGDominoSimulation.class, (java.lang.String[]) null);
 }
Exemplo n.º 8
0
 /** @param args the command line arguments */
 public static void main(String[] args) {
   Application.launch(Main.class, (java.lang.String[]) null);
 }
Exemplo n.º 9
0
  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();
      }
    }
  }
Exemplo n.º 10
0
 public static void main(String[] args) {
   // Application.setUserAgentStylesheet(null);
   // StyleManager.getInstance().addUserAgentStylesheet("/css/styles.css");
   Application.launch(args);
 }
Exemplo n.º 11
0
 @Test
 public void test() {
   Application.launch(ColorPickerApp.class);
 }
 @Test
 public void test() {
   Application.launch(TreeTableViewAddDeleteRowsApp.class);
 }
Exemplo n.º 13
0
 public static void main(String[] args) {
   Application.launch(args);
 }
 public static void main(String[] args) {
   // TODO Auto-generated method stub
   Application.launch(args);
 }
Exemplo n.º 15
0
 public static void main(String[] args) {
   Application.launch(BlackmarketApplication.class, args);
 }
Exemplo n.º 16
0
 @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();
 }
Exemplo n.º 18
0
 @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);
 }
Exemplo n.º 20
0
 public static void main(String[] args) throws IOException {
   Application.launch();
 }
Exemplo n.º 21
0
 public void launch(Class<? extends Application> appClass, boolean headless, String... appArgs) {
   initMacosxEmbedded(headless);
   initMonocleHeadless(headless);
   Application.launch(appClass, appArgs);
 }
Exemplo n.º 22
0
 public static void main(String[] args) {
   Application.launch(FXMLSample.class, args);
 }
Exemplo n.º 23
0
 public static void main(String[] args) {
   Application.launch(ControlTest.class, args);
 }
Exemplo n.º 24
0
 @Test
 public void test() {
   Application.launch(SwingInFXApp.class);
 }
Exemplo n.º 25
0
 public static void main(String[] args) {
   launch(args);
 }
Exemplo n.º 26
0
 @Override
 protected void doExecute(OptionSet options) {
   BitsquareApp.setEnvironment(new BitsquareEnvironment(options));
   javafx.application.Application.launch(BitsquareApp.class);
 }