List of usage examples for java.lang Runnable Runnable
Runnable
From source file:BookTest.java
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { JFrame frame = new BookTestFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true);/*from w w w . j a v a 2 s .c om*/ } }); }
From source file:GUI.Main.java
public static void main(final String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override/*from w w w. ja va 2s . c om*/ public void run() { WebLookAndFeel.install(); WebLookAndFeel.setDecorateAllWindows(true); openPleaseWait(); try { openListOfOffresFrame(null); } catch (IOException ex) { } } }); }
From source file:TemHm.LineChart_AWT.java
public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { @Override/* w w w . j av a2s .c o m*/ public void run() { LineChart_AWT chart = new LineChart_AWT("School Vs Years", "Numer of Schools vs years"); chart.pack(); RefineryUtilities.centerFrameOnScreen(chart); chart.setVisible(true); } }); }
From source file:components.TabComponentsDemo.java
public static void main(String[] args) { //Schedule a job for the event dispatch thread: //creating and showing this application's GUI. SwingUtilities.invokeLater(new Runnable() { public void run() { //Turn off metal's use of bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); new TabComponentsDemo("TabComponentsDemo").runTest(); }/*from w w w . j av a 2s.com*/ }); }
From source file:gtu._work.ui.RenameUI.java
/** * Auto-generated main method to display this JFrame *//* w w w. j a v a 2 s .co m*/ public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { RenameUI inst = new RenameUI(); inst.setLocationRelativeTo(null); gtu.swing.util.JFrameUtil.setVisible(true, inst); } }); }
From source file:de.atomfrede.tools.evalutation.ui.AppWindow.java
/** * Launch the application./*w w w.j a v a2 s . com*/ */ public static void main(String[] args) { setLookAndFeel(); EventQueue.invokeLater(new Runnable() { @Override public void run() { try { JarUtil.startFileLogging(); SingleInstance.lock(); AppWindow window = new AppWindow(); window.frame.setVisible(true); } catch (OverlappingFileLockException lock) { DialogUtil.getInstance().showErrorDialog("Lock Exception", "<html><b>A lock is already set.</b><br>Make sure no other instance of Plant Evaluation is running and restart the application.</html>"); System.exit(0); } catch (Exception e) { e.printStackTrace(); } } }); }
From source file:SafeRepaint.java
public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { SafeRepaint repaint = new SafeRepaint(); repaint.setVisible(true);//from www . j a v a2 s . c o m } }); }
From source file:JFrameDemoSafe.java
public static void main(String[] args) { // Create the GUI (variable is final because used by inner class). final JFrame demo = new JFrameDemo(); // Create a Runnable to set the main visible, and get Swing to invoke. EventQueue.invokeLater(new Runnable() { public void run() { demo.setVisible(true);/*from w ww . j a va2 s. c om*/ } }); }
From source file:LicenseGenerator.java
/** * Launch the application.//ww w . j ava 2s . co m */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { LicenseGenerator window = new LicenseGenerator(); window.m_frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
From source file:XMLWriteTest.java
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { XMLWriteFrame frame = new XMLWriteFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true);//w w w . j a v a2s. c o m } }); }