Java에서 Swing component를 다룰 때 EventQueue를 이용하는 이유?
http://stackoverflow.com/questions/22534356/java-awt-eventqueue-invokelater-explained
자바 네트워크 프로그래밍 책을 읽던 중 아래의 소스에 대해 궁금하게 되어 찾아 보게 됨.
public class Fibonacci { public static void main(String[] args) { // ... EventQueue.invokeLater(new FrameShower(f)); } private static class FrameShower implements Runnable { private final Frame frame; FrameShower(Frame frame) { this.frame = frame; } public void run() { frame.setVisible(true); } } }