Oh, I see. Once .setVisible() is called on the JDialog, nothing in that
thread will execute until the JDialog is disposed. Is that right?
I just switched the .setVisible() and the .setDefaultCloseOperation() lines and got the desired results.
Thank you.