m*a
2 楼
I was in a similiar situation before. Well it has nothing
specific to class FileDialog. Once you are using any AWT
resources, like a Frame or Window or Dialog, an "Screen
Updater"
thread will be running. There is no other
way of killing it other than system.exit as I know of.
Try the simplified example 1 and 2:
#1 program will exit
public class OpenDialog {
public static void main(String [] args) {
Frame fm = new Frame();
fm.dispose();
System.out.println("End of program\n");
}
}
#2
specific to class FileDialog. Once you are using any AWT
resources, like a Frame or Window or Dialog, an "Screen
Updater"
thread will be running. There is no other
way of killing it other than system.exit as I know of.
Try the simplified example 1 and 2:
#1 program will exit
public class OpenDialog {
public static void main(String [] args) {
Frame fm = new Frame();
fm.dispose();
System.out.println("End of program\n");
}
}
#2
相关阅读
Latest Java 7 update 11 not working in Chrome/Firefox forConcurrent Exception in Swingguice, spring和ejb刚才发现自己的机器上是7u9java 截取一部分stringFatal Error怎么回事?现在除了pc,基本上都是精简指令集的天下了吧?offer选择求建议 (转载)怎么可以练习多线程编程呢?logistic regression on 3 billion records遇到Swing的一个问题javafx2.2+已经可以直接打包成native了Security experts on Java求教一个Java问题 IllegalMonitorStateException是病毒吗(看本文没事)?how to host a simple blog? (转载)请问Hadoop要怎么学?谁能给我推荐一个strutsspringhibernate的项目你们写shopping cart,用spring,hibernate都是接触了java几年后学会的?java web start的奇异问题请问,哪位可以发我一份SCJP新的题库?