KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > Checkbox


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: Checkbox.java,v $
11    Revision 1.3 2004/03/12 16:35:13 bobintetley
12    AWT CheckboxGroup support and fix for incorrectly named AWT Scrollbar
13
14    Revision 1.2 2004/01/20 07:38:05 bobintetley
15    Bug fixes and compatibility methods
16
17    Revision 1.1 2004/01/15 15:20:29 bobintetley
18    Java2D work
19
20
21 */

22
23 package swingwt.awt;
24
25 public class Checkbox extends swingwtx.swing.JCheckBox {
26     public Checkbox() { super(); }
27     public Checkbox(String JavaDoc text) { super(text); }
28     public Checkbox(String JavaDoc text, boolean b) { super(text, b); }
29     public Checkbox(String JavaDoc text, CheckboxGroup cbg, boolean b) {
30         this(text, b, cbg);
31     }
32     public Checkbox(String JavaDoc 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