日期:2014-05-20 浏览次数:21019 次
Runnable r = new Runnable(){ public void run(){ System.out.print("Gaston."); } }; SwingUtilities.invokeLater(r); try{sleep(1000);}catch(Exception ex){} System.out.print("Alphonse.");
Runnable r = new Runnable(){ public void run(){ System.out.print("Gaston."); } }; try{ SwingUtilities.invokeAndWait(r); sleep(1000); }catch(Exception ex){} System.out.print("Alphonse.");