是什麼區別:SwingUtilities.invokeLater和SwingWorker之間的區別<Void,Object>?
//Some code, takes a bit of time to process
(new SomeJFrame()).setVisible(true);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
(new SomeJWindow()).start();//Start a new thread
}
});
和:
哪種方法更好用?
可能的重複[Java - SwingWorker和SwingUtilities.invokeLater()之間的差異)(http://stackoverflow.com/questions/2829364/java-difference-between-swingworker-and-swingutilities-invokelater) – RamonBoza