1 22 23 package swingwt.awt; 24 25 public class Checkbox extends swingwtx.swing.JCheckBox { 26 public Checkbox() { super(); } 27 public Checkbox(String text) { super(text); } 28 public Checkbox(String text, boolean b) { super(text, b); } 29 public Checkbox(String text, CheckboxGroup cbg, boolean b) { 30 this(text, b, cbg); 31 } 32 public Checkbox(String text, boolean b, CheckboxGroup cbg) { 33 super(text, b, cbg); 34 cbg.add(this); 35 } 36 37 public boolean getState() { return super.isSelected(); } 38 39 } 40 | Popular Tags |