m***a 发帖数: 198 | 1 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 |
|