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 |