68 |
*/ |
*/ |
69 |
public class JRadioButton extends JToggleButton |
public class JRadioButton extends JToggleButton |
70 |
{ |
{ |
|
|
|
71 |
/** |
/** |
72 |
* Compatible with Sun's JDK. |
* Compatible with Sun's JDK. |
73 |
*/ |
*/ |
109 |
{ |
{ |
110 |
this(null, null, false); |
this(null, null, false); |
111 |
} |
} |
112 |
|
|
113 |
/** |
/** |
114 |
* Constructs a radio button using the labelling, state |
* Constructs a radio button using the labelling, state |
115 |
* and icon specified by the supplied action. |
* and icon specified by the supplied action. |
121 |
this(); |
this(); |
122 |
setAction(a); |
setAction(a); |
123 |
} |
} |
124 |
|
|
125 |
/** |
/** |
126 |
* Constructs an unselected radio button with the supplied icon |
* Constructs an unselected radio button with the supplied icon |
127 |
* and no text. |
* and no text. |
141 |
* selected state. Otherwise, the button is unselected. |
* selected state. Otherwise, the button is unselected. |
142 |
*/ |
*/ |
143 |
public JRadioButton(Icon icon, boolean selected) |
public JRadioButton(Icon icon, boolean selected) |
144 |
{ |
{ |
145 |
this(null, icon, selected); |
this(null, icon, selected); |
146 |
} |
} |
147 |
|
|
148 |
/** |
/** |
149 |
* Constructs an unselected radio button using the supplied text |
* Constructs an unselected radio button using the supplied text |
155 |
{ |
{ |
156 |
this(text, null, false); |
this(text, null, false); |
157 |
} |
} |
158 |
|
|
159 |
/** |
/** |
160 |
* Constructs a radio button with the supplied text and state. |
* Constructs a radio button with the supplied text and state. |
161 |
* |
* |
167 |
{ |
{ |
168 |
this(text, null, selected); |
this(text, null, selected); |
169 |
} |
} |
170 |
|
|
171 |
/** |
/** |
172 |
* Constructs an unselected radio button with the supplied text |
* Constructs an unselected radio button with the supplied text |
173 |
* and icon. |
* and icon. |
194 |
borderPainted = false; |
borderPainted = false; |
195 |
contentAreaFilled = false; |
contentAreaFilled = false; |
196 |
} |
} |
197 |
|
|
198 |
/** |
/** |
199 |
* Returns the accessible context for this <code>JRadioButton</code>, |
* Returns the accessible context for this <code>JRadioButton</code>, |
200 |
* in the form of an instance of <code>AccessibleJRadioButton</code>. |
* in the form of an instance of <code>AccessibleJRadioButton</code>. |