547 |
*/ |
*/ |
548 |
public void setDefaultCloseOperation(int operation) |
public void setDefaultCloseOperation(int operation) |
549 |
{ |
{ |
550 |
if (operation == DO_NOTHING_ON_CLOSE || |
/* Reference implementation allows invalid operations |
551 |
operation == HIDE_ON_CLOSE || |
to be specified. If so, getDefaultCloseOperation |
552 |
operation == DISPOSE_ON_CLOSE) |
must return the invalid code, and the behaviour |
553 |
close_action = operation; |
defaults to DO_NOTHING_ON_CLOSE. processWindowEvent |
554 |
else |
above handles this */ |
555 |
// accept illegal value and set the property to the default value, |
close_action = operation; |
|
// that's what the reference implementation does |
|
|
close_action = DO_NOTHING_ON_CLOSE; |
|
556 |
} |
} |
557 |
|
|
558 |
/** |
/** |