Example usage for javax.swing SwingUtilities invokeLater

List of usage examples for javax.swing SwingUtilities invokeLater

Introduction

In this page you can find the example usage for javax.swing SwingUtilities invokeLater.

Prototype

public static void invokeLater(Runnable doRun) 

Source Link

Document

Causes doRun.run() to be executed asynchronously on the AWT event dispatching thread.

Usage

From source file:gtu._work.etc.HotnoteMakerUI.java

/**
* Auto-generated main method to display this JFrame
*//*from  ww  w .  ja v a  2s . c  o  m*/
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            HotnoteMakerUI inst = new HotnoteMakerUI();
            inst.setLocationRelativeTo(null);
            gtu.swing.util.JFrameUtil.setVisible(true, inst);
        }
    });
}

From source file:gtu._work.ui.EstoreDAOCodeGenerateUI.java

/**
 * Auto-generated main method to display this JFrame
 *///  w  ww  . j  av  a 2 s .c o  m
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            EstoreDAOCodeGenerateUI inst = new EstoreDAOCodeGenerateUI();
            inst.setLocationRelativeTo(null);
            gtu.swing.util.JFrameUtil.setVisible(true, inst);
        }
    });
}

From source file:gtu.zcognos.SimpleUI.java

/**
 * Auto-generated main method to display this JFrame
 *//*  w  w w. j  a  va  2 s  .  c  om*/
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            SimpleUI inst = new SimpleUI();
            inst.setLocationRelativeTo(null);
            gtu.swing.util.JFrameUtil.setVisible(true, inst);
        }
    });
    System.out.println("done...");
}

From source file:gtu._work.ui.RetryByPassUI.java

/**
* Auto-generated main method to display this JFrame
*//*from   w  w  w.j av  a2s.  c o m*/
public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            RetryByPassUI inst = new RetryByPassUI();
            inst.setLocationRelativeTo(null);
            gtu.swing.util.JFrameUtil.setVisible(true, inst);
        }
    });
}

From source file:gtu._work.ui.ObnfRepairDBUI.java

/**
* Auto-generated main method to display this JFrame
 * @throws DocumentException /*from  w w  w.  j  av  a 2s .com*/
*/
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 //from  ww  w.  j a  va2  s. c om
*/
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:gtu._work.etc.GoogleContactUI.java

/**
 * Auto-generated main method to display this JFrame
 *//*  w  ww  .  j a v a2  s. c om*/
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
 *///  www. j a va 2s. 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;//from w  w w. j  av  a  2 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);
        }
    });
}

From source file:painting.SwingPaintDemo4.java

public static void main(String[] args) {

    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            createAndShowGUI();//from  w  ww  .j ava  2  s  . c om
        }
    });
}