List of usage examples for java.lang Runnable Runnable
Runnable
From source file:ua.com.fielden.platform.example.swing.booking.BookingChartPanelExample.java
public static void main(final String[] args) { SwingUtilitiesEx.invokeLater(new Runnable() { @Override// w w w.ja v a2 s . c o m public void run() { for (final LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(laf.getName())) { try { UIManager.setLookAndFeel(laf.getClassName()); } catch (final Exception e) { e.printStackTrace(); } } } com.jidesoft.utils.Lm.verifyLicense("Fielden Management Services", "Rollingstock Management System", "xBMpKdqs3vWTvP9gxUR4jfXKGNz9uq52"); LookAndFeelFactory.installJideExtension(); final JFrame frame = new JFrame("Booking chart demo"); final JLabel label = new JLabel("None"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLayout(new MigLayout("fill, insets 0", "[grow, fill]", "[grow, fill][]")); frame.add(createBookingChartPanel(label), "wrap"); frame.add(label); frame.setPreferredSize(new Dimension(640, 480)); frame.pack(); frame.setVisible(true); } }); }
From source file:dpcs.UninstallPrivApps.java
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { UninstallPrivApps frame = new UninstallPrivApps(); frame.setVisible(true);//from w w w . ja v a 2 s . c o m } catch (Exception e) { e.printStackTrace(); } } }); }
From source file:dpcs.UninstallSystemApps.java
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { UninstallSystemApps frame = new UninstallSystemApps(); frame.setVisible(true);/* w ww .j a v a 2 s .c o m*/ } catch (Exception e) { e.printStackTrace(); } } }); }
From source file:br.on.daed.services.initializers.SpringBootApplicationInitializer.java
public static void main(String[] args) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { TelaPrincipal telaPrincipal = new TelaPrincipal(); telaPrincipal.setVisible(true); new Thread(new Runnable() { public void run() { ConfigurableApplicationContext context = SpringApplication .run(SpringBootApplicationInitializer.class, args); int port = ((TomcatEmbeddedServletContainer) ((AnnotationConfigEmbeddedWebApplicationContext) context) .getEmbeddedServletContainer()).getPort(); url = "http://localhost:" + port; telaPrincipal.readyState(url); }//from w w w . jav a 2s .co m }).start(); } }); }
From source file:gtu._work.ui.ObnfRepairDBUI.java
/** * Auto-generated main method to display this JFrame * @throws DocumentException /* w w w.j a va 2 s . c om*/ */ public static void main(String[] args) throws DocumentException { SwingUtilities.invokeLater(new Runnable() { public void run() { ObnfRepairDBUI inst = new ObnfRepairDBUI(); inst.setLocationRelativeTo(null); gtu.swing.util.JFrameUtil.setVisible(true, inst); } }); }
From source file:gtu._work.ui.LoadJspFetchJavascriptUI.java
/** * Auto-generated main method to display this JFrame * @throws IOException /*w w w. j a va2s .c o m*/ */ public static void main(String[] args) throws IOException { SwingUtilities.invokeLater(new Runnable() { public void run() { LoadJspFetchJavascriptUI inst = new LoadJspFetchJavascriptUI(); inst.setLocationRelativeTo(null); gtu.swing.util.JFrameUtil.setVisible(true, inst); } }); }
From source file:dpcs.UninstallUserApps.java
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { UninstallUserApps frame = new UninstallUserApps(); frame.setVisible(true);/*from w w w.j av a 2s . co m*/ } catch (Exception e) { e.printStackTrace(); } } }); }
From source file:gtu._work.etc.GoogleContactUI.java
/** * Auto-generated main method to display this JFrame *///from ww w .ja v a 2 s . c o m public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { GoogleContactUI inst = new GoogleContactUI(); inst.setLocationRelativeTo(null); gtu.swing.util.JFrameUtil.setVisible(true, inst); } }); }
From source file:gtu._work.ui.DbFieldJavaFieldUI.java
/** * Auto-generated main method to display this JFrame *//* w w w .java 2 s. c o m*/ public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { DbFieldJavaFieldUI inst = new DbFieldJavaFieldUI(); inst.setLocationRelativeTo(null); gtu.swing.util.JFrameUtil.setVisible(true, inst); } }); }
From source file:aurelienribon.texturepackergui.Main.java
public static void main(String[] args) { Parameters params = new Parameters(args); Project project = params.project;/* w w w .ja v a2 s .c o m*/ if (project == null) { String str = ""; str += "input=" + params.input + "\n"; str += "output=" + params.output + "\n"; str += params.settings; project = Project.fromString(str); } if (params.silent) { if (project.input.equals("") || project.output.equals("")) { System.err.println("Input and output directories have to be set"); } else { try { project.pack(); } catch (GdxRuntimeException ex) { System.err.println("Packing unsuccessful. " + ex.getMessage()); } } return; } final Project prj = project; SwingUtilities.invokeLater(new Runnable() { @Override public void run() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException ex) { } catch (InstantiationException ex) { } catch (IllegalAccessException ex) { } catch (UnsupportedLookAndFeelException ex) { } Canvas canvas = new Canvas(); LwjglCanvas glCanvas = new LwjglCanvas(canvas, true); MainWindow mw = new MainWindow(prj, canvas, glCanvas.getCanvas()); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); mw.setSize(Math.min(1100, screenSize.width - 100), Math.min(670, screenSize.height - 100)); mw.setLocationRelativeTo(null); mw.setVisible(true); } }); }