关于JAVA中两个窗口切换的问题
publicvoidLoading(){Threadthread=newThread();try{thread.sleep(2000);}catch(Interrupte...
public void Loading() {
Thread thread = new Thread();
try {
thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
CrazyStartUI csui = new CrazyStartUI();
CrazyLoadingUI clui = new CrazyLoadingUI();
clui.setVisible(false);
clui.dispose();
csui.setVisible(true);
}
});
} 展开
Thread thread = new Thread();
try {
thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
CrazyStartUI csui = new CrazyStartUI();
CrazyLoadingUI clui = new CrazyLoadingUI();
clui.setVisible(false);
clui.dispose();
csui.setVisible(true);
}
});
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询