/[classpath]/classpath/javax/swing/JCheckBoxMenuItem.java
ViewVC logotype

Diff of /classpath/javax/swing/JCheckBoxMenuItem.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by mkoch, Fri Oct 22 12:43:59 2004 UTC revision 1.11 by rabbit78, Mon Jun 20 14:35:53 2005 UTC
# Line 121  public class JCheckBoxMenuItem extends J Line 121  public class JCheckBoxMenuItem extends J
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    {    {
# Line 133  public class JCheckBoxMenuItem extends J Line 134  public class JCheckBoxMenuItem extends J
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    {    {
# Line 178  public class JCheckBoxMenuItem extends J Line 180  public class JCheckBoxMenuItem extends J
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    {    {
# Line 190  public class JCheckBoxMenuItem extends J Line 191  public class JCheckBoxMenuItem extends J
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    {    {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26