342 |
|
|
343 |
if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE |
if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE |
344 |
&& operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE) |
&& operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE) |
345 |
throw new IllegalArgumentException("operation = " + operation); |
throw new IllegalArgumentException("defaultCloseOperation must be EXIT_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE"); |
346 |
|
|
347 |
close_action = operation; |
close_action = operation; |
348 |
} |
} |