コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Main.java プロジェクト: mdamis/library-ws
 public static void main(String[] args) {
   try {
     Application.launch(GUI.class, args);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
コード例 #3
0
  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);
  }
コード例 #4
0
  @Test
  public void mainMethodLaunchesTheApplication() {
    mockStatic(Application.class);

    main(null);

    verifyStatic();
    launch();
  }
コード例 #5
0
  @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;
    }
  }
コード例 #6
0
ファイル: Main.java プロジェクト: jkwhite/caspar
 public static void main(String[] args) {
   Application.launch(Main.class, args);
 }
コード例 #7
0
 public static void main(String args[]) {
   Application.launch(RNGDominoSimulation.class, (java.lang.String[]) null);
 }
コード例 #8
0
ファイル: Main.java プロジェクト: kicco73/retrail-test
 /** @param args the command line arguments */
 public static void main(String[] args) {
   Application.launch(Main.class, (java.lang.String[]) null);
 }
コード例 #9
0
ファイル: Main.java プロジェクト: ayoubdev/MultiChat
  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();
      }
    }
  }
コード例 #10
0
ファイル: App.java プロジェクト: RyanJWong/marsmission
 public static void main(String[] args) {
   // Application.setUserAgentStylesheet(null);
   // StyleManager.getInstance().addUserAgentStylesheet("/css/styles.css");
   Application.launch(args);
 }
コード例 #11
0
 @Test
 public void test() {
   Application.launch(ColorPickerApp.class);
 }
コード例 #12
0
 @Test
 public void test() {
   Application.launch(TreeTableViewAddDeleteRowsApp.class);
 }
コード例 #13
0
ファイル: LoginTest.java プロジェクト: chealwoo/java-study
 public static void main(String[] args) {
   Application.launch(args);
 }
コード例 #14
0
 public static void main(String[] args) {
   // TODO Auto-generated method stub
   Application.launch(args);
 }
コード例 #15
0
ファイル: Main.java プロジェクト: thirdy/blackmarket
 public static void main(String[] args) {
   Application.launch(BlackmarketApplication.class, args);
 }
コード例 #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();
 }
コード例 #18
0
 @Test
 public void test() {
   //		fail("Not yet implemented");
   Application.launch(MouseLocationApp.class);
 }
コード例 #19
0
 /**
  * Método executado para iniciar o sistema.
  *
  * @param args String[]
  */
 public static void main(final String[] args) {
   Application.launch(GerenciadorLojaApplication.class);
 }
コード例 #20
0
ファイル: CollectorGui.java プロジェクト: MattPfenn/Java_work
 public static void main(String[] args) throws IOException {
   Application.launch();
 }
コード例 #21
0
ファイル: ApplicationLauncher.java プロジェクト: deerob/ui4j
 public void launch(Class<? extends Application> appClass, boolean headless, String... appArgs) {
   initMacosxEmbedded(headless);
   initMonocleHeadless(headless);
   Application.launch(appClass, appArgs);
 }
コード例 #22
0
ファイル: FXMLSample.java プロジェクト: Roba1993/octo-chat
 public static void main(String[] args) {
   Application.launch(FXMLSample.class, args);
 }
コード例 #23
0
ファイル: ControlTest.java プロジェクト: divannn/javafx
 public static void main(String[] args) {
   Application.launch(ControlTest.class, args);
 }
コード例 #24
0
 @Test
 public void test() {
   Application.launch(SwingInFXApp.class);
 }
コード例 #25
0
 public static void main(String[] args) {
   launch(args);
 }
コード例 #26
0
 @Override
 protected void doExecute(OptionSet options) {
   BitsquareApp.setEnvironment(new BitsquareEnvironment(options));
   javafx.application.Application.launch(BitsquareApp.class);
 }