121 |
|
|
122 |
/** |
/** |
123 |
* Creates a new JCheckBoxMenuItem object using specified label and |
* Creates a new JCheckBoxMenuItem object using specified label and |
124 |
* marked as checked if given 'state' is true |
* marked as checked if given 'state' is true. |
125 |
* |
* |
126 |
* @param text Label for this menu item |
* @param text Label for this menu item |
127 |
* @param state True if this item should be in checked state and false otherwise |
* @param state <code>true</code> if this item should be in checked state and |
128 |
|
* <code>false</code> otherwise |
129 |
*/ |
*/ |
130 |
public JCheckBoxMenuItem(String text, boolean state) |
public JCheckBoxMenuItem(String text, boolean state) |
131 |
{ |
{ |
134 |
|
|
135 |
/** |
/** |
136 |
* Creates a new JCheckBoxMenuItem object with given label, icon, |
* Creates a new JCheckBoxMenuItem object with given label, icon, |
137 |
* and marked as checked if given 'state' is true |
* and marked as checked if given 'state' is true. |
138 |
* |
* |
139 |
* @param text Label for this menu item |
* @param text Label for this menu item |
140 |
* @param icon icon for this menu item |
* @param icon icon for this menu item |
141 |
* @param state True if this item should be in checked state and false otherwise |
* @param state <code>true</code> if this item should be in checked state and |
142 |
|
* false otherwise |
143 |
*/ |
*/ |
144 |
public JCheckBoxMenuItem(String text, Icon icon, boolean state) |
public JCheckBoxMenuItem(String text, Icon icon, boolean state) |
145 |
{ |
{ |
180 |
* and uncheck this menu item otherwise. |
* and uncheck this menu item otherwise. |
181 |
* |
* |
182 |
* @param state new state for this menu item |
* @param state new state for this menu item |
|
* |
|
183 |
*/ |
*/ |
184 |
public synchronized void setState(boolean state) |
public synchronized void setState(boolean state) |
185 |
{ |
{ |
191 |
* menu item if it is selected and null otherwise. |
* menu item if it is selected and null otherwise. |
192 |
* |
* |
193 |
* @return Array containing label of this |
* @return Array containing label of this |
194 |
* menu item if this menu item is selected or null otherwise. |
* menu item if this menu item is selected or null otherwise. |
195 |
*/ |
*/ |
196 |
public Object[] getSelectedObjects() |
public Object[] getSelectedObjects() |
197 |
{ |
{ |