2
0

Looks like the default close operation is hide and WINDOW_CLOSING is only an interactive request to close the window.

This commit is contained in:
Maarten Billemont 2015-01-04 11:28:30 -05:00
parent d1649f3c33
commit 6304b3a619
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ public class PasswordFrame extends JFrame implements DocumentListener {
JLabel label;
setDefaultCloseOperation( DISPOSE_ON_CLOSE );
setContentPane( new JPanel( new BorderLayout( 20, 20 ) ) {
{
setBorder( new EmptyBorder( 20, 20, 20, 20 ) );

View File

@ -73,7 +73,7 @@ public abstract class Res {
host.addWindowListener( new WindowAdapter() {
@Override
public void windowClosing(final WindowEvent e) {
public void windowClosed(final WindowEvent e) {
ExecutorService executor = executorByWindow.remove( host );
if (executor != null)
executor.shutdownNow();