Beispiel #1
0
  /** @param args the command line arguments */
  public static void main(String args[]) {
    boolean bGUIpara = true;

    // Parse parameter:
    int iSize = args.length;
    // PBVCPlugin -gui=false -K=/somewhere/c1.pprj -Q=/somewhere/QueriesRepositories
    //
    for (int i = 0; i < iSize; i++) {}

    if (bGUIpara) {
      java.awt.EventQueue.invokeLater(
          new Runnable() {
            public void run() {
              PBVCPlugin dialog = new PBVCPlugin(new javax.swing.JFrame(), true);
              dialog.addWindowListener(
                  new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                      System.exit(0);
                    }
                  });
              dialog.setVisible(true);
            }
          });
    } else {
      // Using command line
      /*
       */
    }
  }
Beispiel #2
0
 public static void main(String args[]) {
   try {
     for (javax.swing.UIManager.LookAndFeelInfo info :
         javax.swing.UIManager.getInstalledLookAndFeels()) {
       if ("Nimbus".equals(info.getName())) {
         javax.swing.UIManager.setLookAndFeel(info.getClassName());
         break;
       }
     }
   } catch (ClassNotFoundException
       | InstantiationException
       | IllegalAccessException
       | javax.swing.UnsupportedLookAndFeelException ex) {
     java.util.logging.Logger.getLogger(Options.class.getName())
         .log(java.util.logging.Level.SEVERE, null, ex);
   }
   /* Create and display the form */
   java.awt.EventQueue.invokeLater(
       new Runnable() {
         @Override
         public void run() {
           new Options().setVisible(true);
         }
       });
 }
  /** Displays the QSAdminGUi with in a JFrame. */
  public static void showGUI(String args[], final SplashScreen splash) {
    java.awt.EventQueue.invokeLater(
        new Runnable() {
          public void run() {
            try {
              UIManager.setLookAndFeel("net.sourceforge.mlf.metouia.MetouiaLookAndFeel");
            } catch (Exception e) {
              try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception ee) {
              }
            }

            qsadminMain = new QSAdminMain();

            JFrame frame = new JFrame("QSAdmin GUI");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

            QSAdminGUI qsAdminGUI = new QSAdminGUI(qsadminMain, frame);
            qsAdminGUI.updateConnectionStatus(false);
            frame.getContentPane().add(qsAdminGUI);
            frame.pack();
            frame.setSize(700, 450);
            frame.setIconImage(qsAdminGUI.logo.getImage());
            JFrameUtilities.centerWindow(frame);
            frame.setVisible(true);
            if (splash != null) splash.kill();
          }
        });
  }
 public static void main(String args[]) {
   java.awt.EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           new MemorizeFrame().setVisible(true);
         }
       });
 }
 /** @param args the command line arguments */
 public static void main(String args[]) {
   java.awt.EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           new LSATApplication().setVisible(true);
         }
       });
 }
  public static void register(String args[]) {

    java.awt.EventQueue.invokeLater(
        new Runnable() {
          public void run() {
            new register_frame().setVisible(true);
          }
        });
  }
  /** @param args the command line arguments */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(
        new Runnable() {

          @Override
          public void run() {
            new StatisticalAnalysisFrame().setVisible(true);
          }
        });
  }
Beispiel #8
0
  /** @param args the command line arguments */
  public static void main(String args[]) {
    selectedUILang = prefs.get("UILanguage", "en");
    Locale.setDefault(selectedUILang.equals("vi") ? VIETNAM : Locale.US);

    java.awt.EventQueue.invokeLater(
        new Runnable() {

          @Override
          public void run() {
            new GuiWithWatch().setVisible(true);
          }
        });
  }
  /** @param args the command line arguments */
  public static void main(String args[]) {

    java.awt.EventQueue.invokeLater(
        new Runnable() {

          public void run() {

            RobotFactory panel = new RobotFactory();
            panel.setVisible(true);

            HashMap<JLabel, Integer> label_state = new HashMap<JLabel, Integer>();
            label_state.put(panel.labels[2], 0);
          }
        });
  }
  /** @param args the command line arguments */
  public static void main(String args[]) {
    /*
     * Set the Nimbus look and feel
     */
    // <editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
    /*
     * If Nimbus (introduced in Java SE 6) is not available, stay with the
     * default look and feel. For details see
     * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
     */
    try {
      for (javax.swing.UIManager.LookAndFeelInfo info :
          javax.swing.UIManager.getInstalledLookAndFeels()) {
        if ("Nimbus".equals(info.getName())) {
          javax.swing.UIManager.setLookAndFeel(info.getClassName());
          break;
        }
      }
    } catch (ClassNotFoundException ex) {
      java.util.logging.Logger.getLogger(VagrantDeductor.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
      java.util.logging.Logger.getLogger(VagrantDeductor.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
      java.util.logging.Logger.getLogger(VagrantDeductor.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (javax.swing.UnsupportedLookAndFeelException ex) {
      java.util.logging.Logger.getLogger(VagrantDeductor.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    }
    // </editor-fold>

    /*
     * Create and display the form
     */
    java.awt.EventQueue.invokeLater(
        new Runnable() {

          public void run() {
            new VagrantDeductor7installations().setVisible(false);
          }
        });
  }
Beispiel #11
0
  /** Initializes the applet CmdTicket */
  @Override
  public void init() {
    /* Set the Nimbus look and feel */
    // <editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
    /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
     * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
     */
    try {
      for (javax.swing.UIManager.LookAndFeelInfo info :
          javax.swing.UIManager.getInstalledLookAndFeels()) {
        if ("Nimbus".equals(info.getName())) {
          javax.swing.UIManager.setLookAndFeel(info.getClassName());
          break;
        }
      }
    } catch (ClassNotFoundException ex) {
      java.util.logging.Logger.getLogger(CmdTicket.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
      java.util.logging.Logger.getLogger(CmdTicket.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
      java.util.logging.Logger.getLogger(CmdTicket.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    } catch (javax.swing.UnsupportedLookAndFeelException ex) {
      java.util.logging.Logger.getLogger(CmdTicket.class.getName())
          .log(java.util.logging.Level.SEVERE, null, ex);
    }
    // </editor-fold>

    /* Create and display the applet */
    try {
      java.awt.EventQueue.invokeAndWait(
          new Runnable() {
            public void run() {
              initComponents();
              RecupProjection(0);
            }
          });
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
Beispiel #12
0
 /** @param args the command line arguments */
 public static void main(String args[]) {
   java.awt.EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           Login dialog = new Login();
           dialog.addWindowListener(
               new java.awt.event.WindowAdapter() {
                 @Override
                 public void windowClosing(java.awt.event.WindowEvent e) {
                   try {
                     if (streamOut != null) streamOut.close();
                     if (socket != null) socket.close();
                   } catch (IOException ioe) {
                     System.out.println("Error closing ...");
                   }
                   System.exit(0);
                 }
               });
           dialog.setVisible(true);
         }
       });
 }