Function of javax.swing.SwingUtilities.invokeLater(new Runnable(
Hi Everybody,
I just what to know why some samples contains this portion in calling main method
Code :
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
Is this mean run application GUI as a separated thread from main thread or i'm wrong...!!
Re: Why SwingUtilities....???
Yupp thats what it looks like, its creating an anonymous inner class and passing it into that method.
// Json
Re: Why SwingUtilities....???
Thanks Json for your replay.