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

Diff of /classpath/java/awt/Checkbox.java

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

revision 1.18 by mark, Sat Jul 2 20:32:23 2005 UTC revision 1.19 by rschuster, Mon Sep 19 08:57:03 2005 UTC
# Line 392  Checkbox(String label, boolean state, Ch Line 392  Checkbox(String label, boolean state, Ch
392    this.label = label;    this.label = label;
393    this.state = state;    this.state = state;
394    this.group = group;    this.group = group;
395    
396      if ( state && group != null )
397        {
398          group.setSelectedCheckbox(this);
399        }
400  }  }
401    
402  /*************************************************************************/  /*************************************************************************/
# Line 610  dispatchEventImpl(AWTEvent e) Line 615  dispatchEventImpl(AWTEvent e)
615  protected String  protected String
616  paramString()  paramString()
617  {  {
618    return ("label=" + label + ",state=" + state + ",group=" + group    // Note: We cannot add the checkbox group information here because this
619            + "," + super.paramString());    // would trigger infinite recursion when CheckboxGroup.toString() is
620      // called and the box is in its selected state.
621      return ("label=" + label + ",state=" + state + "," + super.paramString());
622  }  }
623    
624  /**  /**

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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