32 |
/** Has this dialog been canceled ? **/ |
/** Has this dialog been canceled ? **/ |
33 |
protected boolean cancelled = false; |
protected boolean cancelled = false; |
34 |
|
|
|
private OkButton okButton; |
|
|
|
|
|
private CancelButton cancelButton; |
|
|
|
|
35 |
public CancellableDialogAdapter(Component parentWindow) { |
public CancellableDialogAdapter(Component parentWindow) { |
36 |
super(parentWindow); |
super(parentWindow); |
37 |
} |
} |
123 |
/** |
/** |
124 |
* @return a default OkButton that will call {@link #okClose()} |
* @return a default OkButton that will call {@link #okClose()} |
125 |
*/ |
*/ |
126 |
|
@Override |
127 |
protected OkButton getOkButton() { |
protected OkButton getOkButton() { |
128 |
if (okButton == null) { |
if (okButton == null) { |
129 |
okButton = new OkButton(new AbstractAction() { |
okButton = new OkButton(new AbstractAction() { |
140 |
/** |
/** |
141 |
* @return a default CancelButton that will call {@link #cancelClose()} |
* @return a default CancelButton that will call {@link #cancelClose()} |
142 |
*/ |
*/ |
143 |
|
@Override |
144 |
protected CancelButton getCancelButton() { |
protected CancelButton getCancelButton() { |
145 |
if (cancelButton == null) { |
if (cancelButton == null) { |
146 |
cancelButton = new CancelButton(new AbstractAction() { |
cancelButton = new CancelButton(new AbstractAction() { |