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
相关阅读
a simple questionfinal static constants easy get cached?java覆盖率测试工具?将float变成int的现成函数有么? help!thanks everyone.Help!!! set LD_LIBRARY_PATH in Eclipsesynchronization 锁住了什么?IllegalStateException: Cannot forward after response has bePlease recommend one introductory Java booka question about JNI for HP-UXJava Q&AJAVA 源代码搜索引擎Java程序员认证模拟题及详细分析(4)Anybody can recommend a framework article for building swin请问怎么改变org.w3c.dom.Document一个node得值update for cookxml/cookswing/cookswtPrintable Java2参考大全(第四版)pdf文件一个基本问题读文件时,如何才能只将空白符当成分隔符?