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:
parent
d1649f3c33
commit
6304b3a619
@ -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 ) );
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user