/** * DOCUMENT ME! * * @param args the command line arguments */ public static void main(final String[] args) { /* * Create and display the dialog */ java.awt.EventQueue.invokeLater( new Runnable() { @Override public void run() { try { javax.swing.UIManager.setLookAndFeel(new Plastic3DLookAndFeel()); Log4JQuickConfig.configure4LumbermillOnLocalhost(); } catch (UnsupportedLookAndFeelException ex) { Exceptions.printStackTrace(ex); } final FortfuehrungsanlaesseDialog dialog = new FortfuehrungsanlaesseDialog(new javax.swing.JFrame(), true); dialog.addWindowListener( new java.awt.event.WindowAdapter() { @Override public void windowClosing(final java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); }
/** @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(ManageAcces.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(ManageAcces.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(ManageAcces.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(ManageAcces.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } // </editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater( () -> { new ManageAcces().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[]) { 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); } }); }
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 superamountcal().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); } }); }
/** @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { new KnightRMSGUI().setVisible(true); } }); }
/** @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { // new Traphong().setVisible(true); } }); }
/** @param args the command line arguments */ public static void start(GuiGameController _controller) { final GuiGameController controller = _controller; java.awt.EventQueue.invokeLater( new Runnable() { public void run() { HexGui hex = new HexGui(controller); hex.setVisible(true); } }); }
/** @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(MensagemConfirmaExclusaoSequenciaProducao.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MensagemConfirmaExclusaoSequenciaProducao.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MensagemConfirmaExclusaoSequenciaProducao.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MensagemConfirmaExclusaoSequenciaProducao.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } // </editor-fold> /* * Create and display the dialog */ java.awt.EventQueue.invokeLater( new Runnable() { public void run() { MensagemConfirmaExclusaoSequenciaProducao dialog = new MensagemConfirmaExclusaoSequenciaProducao(new javax.swing.JFrame(), true); dialog.addWindowListener( new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); }
public static void show(MapContext context, final boolean statefull, final Hints hints) { if (context == null) context = MapBuilder.createContext(); final MapContext mc = context; java.awt.EventQueue.invokeLater( new Runnable() { @Override public void run() { new JMap2DFrame(mc, statefull, hints).setVisible(true); } }); }
@Override public void update(Observable arg0, Object arg1) { if (arg1 instanceof String) { String message = arg1.toString(); if (message.startsWith("Forwarding: ")) { ForwardButton.setText("Stop Forwarding"); SetChannelButton.setEnabled(false); BlockButton.setEnabled(false); Send.setEnabled(false); MessageInput.setEnabled(false); MessageDisplay.setEnabled(false); Availability.setEnabled(false); } else if (message.startsWith("End Forwarding:")) { ForwardButton.setText("Forward"); SetChannelButton.setEnabled(true); BlockButton.setEnabled(true); Send.setEnabled(true); MessageInput.setEnabled(true); MessageDisplay.setEnabled(true); Availability.setEnabled(true); } else if (message.startsWith("#send")) { try { client.sendToServer(message.substring(6)); } catch (IOException e) { e.printStackTrace(); } return; } else if (message.startsWith("#linedraw")) { drawPad.updateDraw(message); return; } else if (message.startsWith("Login Error:")) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { chatFrame.setVisible(false); LoginGUI login = new LoginGUI(true); } }); } if (!message.substring(message.length() - 1, message.length()).equals("\n")) message += "\n"; // Update UI display safely final String msg = message; SwingUtilities.invokeLater( new Runnable() { public void run() { MessageDisplay.append(msg); } }); } }
/** @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 GuiWithTools().setVisible(true); } }); }
/** * Prints text in the message area. * * @param s */ public void print(final String s) { if (SwingUtilities.isEventDispatchThread() || Thread.currentThread().getName().equals("main")) { // $NON-NLS-1$ messageTextArea.append(s); return; } Runnable doLater = new Runnable() { public void run() { messageTextArea.append(s); } }; // Update from the event queue. java.awt.EventQueue.invokeLater(doLater); }
/** @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); } }); }
public void scriptStopped(final ScriptHandler handler) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { final Bot bot = handler.getBot(); bot.inputFlags = Environment.INPUT_KEYBOARD | Environment.INPUT_MOUSE; bot.overrideInput = false; toolBar.setTabLabel(bots.indexOf(bot), Messages.TABDEFAULTTEXT); if (bot == getCurrentBot()) { updateScriptControls(); setTitle(null); } } }); }
/** Remove all text from the message area. */ public void clearMessages() { if (SwingUtilities.isEventDispatchThread() || Thread.currentThread().getName().equals("main")) { // $NON-NLS-1$ messageTextArea.setText(""); // $NON-NLS-1$ return; } Runnable doLater = new Runnable() { public void run() { messageTextArea.setText(""); // $NON-NLS-1$ } }; // Update from the event queue. java.awt.EventQueue.invokeLater(doLater); }
public void updateData(final long tick) { if (render != null && !invoked) { invoked = true; java.awt.EventQueue.invokeLater( new Runnable() { public void run() { if (render != null) { render.setTick(tick); render.display(); } invoked = false; } }); } }
public void scriptStarted(final ScriptHandler handler) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { final Bot bot = handler.getBot(); bot.inputFlags = Environment.INPUT_KEYBOARD; bot.overrideInput = false; final String acct = bot.getAccountName(); toolBar.setTabLabel(bots.indexOf(bot), acct == null ? Messages.TABDEFAULTTEXT : acct); if (bot == getCurrentBot()) { updateScriptControls(); setTitle(acct); } } }); }
/** @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 (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(MathGenerator.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MathGenerator.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MathGenerator.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MathGenerator.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } // </editor-fold> /* Create and display the form, setting a new Round */ java.awt.EventQueue.invokeLater( new Runnable() { public void run() { MathGenerator mg = new MathGenerator(); mg.setVisible(true); mg.operationComBox.setSelectedIndex(0); mg.resetProblems(); } }); }
private void showLogin() { // Show Login listPeople(); showView("login"); // show welcome message printerStart(); // keyboard listener activation inputtext = new StringBuffer(); m_txtKeys.setText(null); java.awt.EventQueue.invokeLater( new Runnable() { public void run() { m_txtKeys.requestFocus(); } }); }
/** @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater( new Runnable() { public void run() { File samFile = new File("/Users/jrobinso/IGV/Sam/30DWM.7.sam"); File idxFile = new File("/Users/jrobinso/IGV/Sam/30DWM.7.sai"); IndexCreatorDialog dialog = new IndexCreatorDialog(new JFrame(), true, samFile, idxFile); dialog.addWindowListener( new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); }
/** @param args the command line arguments */ public static void main(String args[]) { final String[] arguments = args; /* Set the Nimbus look and feel */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (Exception e) { } // use Default look/feel /* Create and display the form */ java.awt.EventQueue.invokeLater( new Runnable() { public void run() { createAndShowGUI(arguments); } }); }
public static void main(String args[]) { java.awt.EventQueue.invokeLater( new Runnable() { @Override public void run() { try { Service.configService().checkResources(); initLogger(); Service.configService().checkData(); Service.configService().checkFirstUse(); new AppFrame().setVisible(true); } catch (ServiceFailureException e) { JDialog errorDialog = new ErrorDialog(e); errorDialog.setVisible(true); System.exit(1); } } }); }
public static void startGui(MusicLibraryAgent musicLibraryAgent) { /* 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 (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Windows".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(MainFrame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MainFrame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MainFrame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MainFrame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } // </editor-fold> fc.setMultiSelectionEnabled(true); fc.setCurrentDirectory(new File("D:")); final MainFrame mainFrame = new MainFrame(musicLibraryAgent); /* Create and display the form */ java.awt.EventQueue.invokeLater( new Runnable() { public void run() { mainFrame.setVisible(true); } }); }
/** @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); } }); }
/** @param args the command line arguments */ 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; } */ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(LoadingDialog.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } java.awt.EventQueue.invokeLater(new XCOMSGE()); }
public void init() { try { // Set System L&F for Device UI UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (UnsupportedLookAndFeelException e) { log.error( "'UnsupportedLookAndFeelException' error occurred whilst initializing the" + " Agent UI."); } catch (ClassNotFoundException e) { log.error("'ClassNotFoundException' error occurred whilst initializing the Agent UI."); } catch (InstantiationException e) { log.error("'InstantiationException' error occurred whilst initializing the Agent UI."); } catch (IllegalAccessException e) { log.error("'IllegalAccessException' error occurred whilst initializing the Agent UI."); } java.awt.EventQueue.invokeLater( new Runnable() { public void run() { agentUI = new AgentUI(); agentUI.setVisible(true); } }); setAudioSequencer(); }
/** @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(Frame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Frame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Frame.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Frame.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() { Environment env = new Environment(); DiskArray diskArray01 = new DiskArray(); diskArray01.setVolumes(new ArrayList<Volume>()); diskArray01.setEnvironment(env); DiskArray diskArray02 = new DiskArray(); diskArray02.setVolumes(new ArrayList<Volume>()); diskArray02.setEnvironment(env); env.setDiskArrays(new ArrayList<DiskArray>()); env.getDiskArrays().add(diskArray01); env.getDiskArrays().add(diskArray02); Volume vol01 = new Volume(); vol01.setName("vol01"); vol01.setCapacity(10000000000L); vol01.setUsedrate(80.0); vol01.setDiskArray(diskArray01); Volume vol02 = new Volume(); vol02.setName("vol02"); vol02.setCapacity(20000000000L); vol02.setUsedrate(50.0); vol02.setDiskArray(diskArray01); diskArray01.getVolumes().add(vol01); diskArray01.getVolumes().add(vol02); diskArray01.setName("ETERNUS 410"); diskArray01.setIpAddress("xx.xx.xx.xx"); Volume vol03 = new Volume(); vol03.setName("vol01"); vol03.setCapacity(10000000000L); vol03.setUsedrate(80.0); vol03.setDiskArray(diskArray01); Volume vol04 = new Volume(); vol04.setName("vol02"); vol04.setCapacity(20000000000L); vol04.setUsedrate(50.0); vol04.setDiskArray(diskArray01); diskArray02.getVolumes().add(vol03); diskArray02.getVolumes().add(vol04); diskArray02.setName("ETERNUS 440"); diskArray02.setIpAddress("yy.yy.yy.yy"); Navigator navigator = new Navigator(env); MainPanel mainPanel = new MainPanel(); new Frame(navigator, mainPanel).setVisible(true); } }); }