1 Clazz.declarePackage ("awt2swing");
\r
2 Clazz.load (["javax.swing.JCheckBox"], "awt2swing.Checkbox", null, function () {
\r
3 c$ = Clazz.declareType (awt2swing, "Checkbox", javax.swing.JCheckBox);
\r
4 Clazz.defineMethod (c$, "getState",
\r
6 return this.isSelected ();
\r
8 Clazz.defineMethod (c$, "setState",
\r
10 this.setSelected (b);
\r