129 |
* Compatible with Sun's JDK. |
* Compatible with Sun's JDK. |
130 |
*/ |
*/ |
131 |
private static final long serialVersionUID = -1589950750899943974L; |
private static final long serialVersionUID = -1589950750899943974L; |
132 |
|
|
133 |
/** |
/** |
134 |
* Sets the pressed state of the button. The selected state |
* Sets the pressed state of the button. The selected state |
135 |
* of the button also changes follwing the button being pressed. |
* of the button also changes follwing the button being pressed. |
174 |
ActionEvent.ACTION_PERFORMED, |
ActionEvent.ACTION_PERFORMED, |
175 |
actionCommand)); |
actionCommand)); |
176 |
} |
} |
|
|
|
177 |
} |
} |
178 |
|
|
179 |
|
/** |
180 |
|
* Checks if the button is selected. |
181 |
|
* |
182 |
|
* @returns true if the button is selected |
183 |
|
*/ |
184 |
|
public boolean isSelected() |
185 |
|
{ |
186 |
|
return super.isSelected(); |
187 |
|
} |
188 |
|
|
189 |
|
/** |
190 |
|
* Sets the selected state of the button. |
191 |
|
* |
192 |
|
* @param b true if button is selected |
193 |
|
*/ |
194 |
|
public void setSelected(boolean b) |
195 |
|
{ |
196 |
|
super.setSelected(b); |
197 |
|
} |
198 |
} |
} |
199 |
|
|
200 |
/** |
/** |