1305 |
*/ |
*/ |
1306 |
public void setDefaultCloseOperation(int operation) |
public void setDefaultCloseOperation(int operation) |
1307 |
{ |
{ |
1308 |
if (operation != DO_NOTHING_ON_CLOSE |
/* Reference implementation allows invalid operations to be specified. |
1309 |
&& operation != HIDE_ON_CLOSE |
In that case, behaviour defaults to DO_NOTHING_ON_CLOSE. |
1310 |
&& operation != DISPOSE_ON_CLOSE) |
processWindowEvent handles the behaviour. getDefaultCloseOperation |
1311 |
throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); |
must return the invalid operator code. */ |
1312 |
defaultCloseOperation = operation; |
defaultCloseOperation = operation; |
1313 |
} |
} |
1314 |
|
|