This little program:
import javax.swing.*;
public class Test {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Hello!"
;
}
}
...shows the dialog box but does not seem to terminate as the Windows console remains open afterwards. It looks like something needs to be cleaned up following the use of this JOpenPane dialog box, but what?
I know that I can use System.exit(0) to terminate this by aborting the program, but it doesn't seem like the "correct" solution to this particular case...
import javax.swing.*;
public class Test {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Hello!"
}
}
...shows the dialog box but does not seem to terminate as the Windows console remains open afterwards. It looks like something needs to be cleaned up following the use of this JOpenPane dialog box, but what?
I know that I can use System.exit(0) to terminate this by aborting the program, but it doesn't seem like the "correct" solution to this particular case...