Method setDefaultCloseOperation(int operation)
Return type: void
Member of: javax.swing.JDialog
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 this.setDefaultCloseOperation(0);
2 dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
3 setDefaultCloseOperation(DISPOSE_ON_CLOSE);
4 setDefaultCloseOperation(DISPOSE_ON_CLOSE);
5 dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
6 setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
7 this.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
8 this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
9 this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
10 setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
11 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
12 setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
13 setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
14 _dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
15 setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); // to consider the isClosingAllowed() aspect
16 d.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
17 setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
18 setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
19 setDefaultCloseOperation( DISPOSE_ON_CLOSE );
20 setDefaultCloseOperation( HIDE_ON_CLOSE);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.