/[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.11 by mkoch, Tue Nov 23 18:04:46 2004 UTC revision 1.12 by mkoch, Thu Dec 30 19:02:06 2004 UTC
# Line 490  paramString() Line 490  paramString()
490            + "," + super.paramString());            + "," + super.paramString());
491  }  }
492    
493    /**
494     * Gets the AccessibleContext associated with this <code>CheckBox</code>.
495     * The context is created, if necessary.
496     *
497     * @return the associated context
498     */
499  public AccessibleContext getAccessibleContext()  public AccessibleContext getAccessibleContext()
500  {  {
501    AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox();    /* Create the context if this is the first request */
502    addItemListener(ac);    if (accessibleContext == null)
503    return ac;    {
504        AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox();
505        accessibleContext = ac;
506        addItemListener(ac);
507      }
508      return accessibleContext;
509  }  }
510    
511  } // class Checkbox  } // class Checkbox

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

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