Example usage for java.awt EventQueue invokeLater

List of usage examples for java.awt EventQueue invokeLater

Introduction

In this page you can find the example usage for java.awt EventQueue invokeLater.

Prototype

public static void invokeLater(Runnable runnable) 

Source Link

Document

Causes runnable to have its run method called in the #isDispatchThread dispatch thread of Toolkit#getSystemEventQueue the system EventQueue .

Usage

From source file:MailTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new MailTestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);/*ww w.  ja  va2s. co m*/
        }
    });
}

From source file:com.awesomecoding.minetestlauncher.Main.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                Main window = new Main();
                window.frmMinetestLauncherV.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();//from  w w  w. j  a  va  2 s.c  o  m
            }
        }
    });
}

From source file:MessageDigestTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new MessageDigestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);//from w  w w . ja  va2 s.  com
        }
    });
}

From source file:TableRowColumnTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new PlanetTableFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);/* www. ja  v  a2 s .c om*/
        }
    });
}

From source file:PrintTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new PrintTestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);//from  w w  w.j a  v  a 2 s  . c om
        }
    });
}

From source file:dpcs.AppPackagesList.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                AppPackagesList frame = new AppPackagesList();
                frame.setVisible(true);/*  w  w w.jav  a 2 s  .  co m*/
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}

From source file:RenderQualityTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new RenderQualityTestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);// w  w  w  .j a v a  2 s. co m
        }
    });
}

From source file:ShapeTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new ShapeTestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);/*from  w  w w . j  a  v a 2s.co  m*/
        }
    });
}

From source file:FormatTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            FormatTestFrame frame = new FormatTestFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);//w  w  w. j a v a  2s . c om
        }
    });
}

From source file:ImageIOTest.java

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            JFrame frame = new ImageIOFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);//from www . j  a  v a 2s  . c o m
        }
    });
}