218 |
{ |
{ |
219 |
case WindowEvent.WINDOW_CLOSING: |
case WindowEvent.WINDOW_CLOSING: |
220 |
{ |
{ |
221 |
switch (close_action) |
switch (close_action) |
222 |
{ |
{ |
223 |
case EXIT_ON_CLOSE: |
case EXIT_ON_CLOSE: |
224 |
{ |
{ |
225 |
System.exit(0); |
System.exit(0); |
|
break; |
|
|
} |
|
|
case DISPOSE_ON_CLOSE: |
|
|
{ |
|
|
dispose(); |
|
|
break; |
|
|
} |
|
|
case HIDE_ON_CLOSE: |
|
|
{ |
|
|
setVisible(false); |
|
226 |
break; |
break; |
227 |
} |
} |
228 |
case DO_NOTHING_ON_CLOSE: |
case DISPOSE_ON_CLOSE: |
229 |
break; |
{ |
230 |
|
dispose(); |
231 |
|
break; |
232 |
|
} |
233 |
|
case HIDE_ON_CLOSE: |
234 |
|
{ |
235 |
|
setVisible(false); |
236 |
|
break; |
237 |
|
} |
238 |
|
case DO_NOTHING_ON_CLOSE: |
239 |
|
break; |
240 |
} |
} |
241 |
break; |
break; |
242 |
} |
} |
243 |
case WindowEvent.WINDOW_CLOSED: |
case WindowEvent.WINDOW_CLOSED: |
244 |
case WindowEvent.WINDOW_OPENED: |
case WindowEvent.WINDOW_OPENED: |
246 |
case WindowEvent.WINDOW_DEICONIFIED: |
case WindowEvent.WINDOW_DEICONIFIED: |
247 |
case WindowEvent.WINDOW_ACTIVATED: |
case WindowEvent.WINDOW_ACTIVATED: |
248 |
case WindowEvent.WINDOW_DEACTIVATED: |
case WindowEvent.WINDOW_DEACTIVATED: |
249 |
break; |
break; |
250 |
} |
} |
251 |
} |
} |
252 |
|
|