/[classpath]/classpath/java/awt/CheckboxMenuItem.java
ViewVC logotype

Diff of /classpath/java/awt/CheckboxMenuItem.java

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

revision 1.9 by tromey, Sun Mar 24 22:34:24 2002 UTC revision 1.10 by mkoch, Mon Dec 23 12:45:46 2002 UTC
# Line 84  private transient ItemListener item_list Line 84  private transient ItemListener item_list
84  /**  /**
85    * Initializes a new instance of <code>CheckboxMenuItem</code> with no    * Initializes a new instance of <code>CheckboxMenuItem</code> with no
86    * label and an initial state of off.    * label and an initial state of off.
87      *
88      * @exception HeadlessException If GraphicsEnvironment.isHeadless()
89      * returns true.
90    */    */
91  public  public
92  CheckboxMenuItem()  CheckboxMenuItem()
# Line 98  CheckboxMenuItem() Line 101  CheckboxMenuItem()
101    * specified label and an initial state of off.    * specified label and an initial state of off.
102    *    *
103    * @param label The label of the menu item.    * @param label The label of the menu item.
104      *
105      * @exception HeadlessException If GraphicsEnvironment.isHeadless()
106      * returns true.
107    */    */
108  public  public
109  CheckboxMenuItem(String label)  CheckboxMenuItem(String label)
# Line 114  CheckboxMenuItem(String label) Line 120  CheckboxMenuItem(String label)
120    * @param label The label of the menu item.    * @param label The label of the menu item.
121    * @param state The initial state of the menu item, where <code>true</code>    * @param state The initial state of the menu item, where <code>true</code>
122    * is on, and <code>false</code> is off.    * is on, and <code>false</code> is off.
123      *
124      * @exception HeadlessException If GraphicsEnvironment.isHeadless()
125      * returns true.
126    */    */
127  public  public
128  CheckboxMenuItem(String label, boolean state)  CheckboxMenuItem(String label, boolean state)
129  {  {
130    super(label);    super(label);
131    this.state = state;    this.state = state;
132    
133      if (GraphicsEnvironment.isHeadless())
134        throw new HeadlessException ();
135  }  }
136    
137  /*************************************************************************/  /*************************************************************************/

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

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