blob: 4991770df09535c2d69207eaf44fdec62e25ea2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
package javax.swing;
import java.awt.*;
import java.awt.event.*;
import javax.swing.plaf.*;
/**
* An instance of JCheckbox can be added to a panel, frame etc
*
* @author Ronald Veldema (rveldema@cs.vu.nl)
*/
public class JCheckBox extends JToggleButton
{
public JCheckBox()
{
this(null, null);
}
public JCheckBox(Action a)
{
this();
setAction(a);
}
public JCheckBox(Icon icon)
{
this(null, icon);
}
public JCheckBox(String text)
{
this(text, null);
}
public JCheckBox(String text, Icon icon)
{
super(text, icon);
}
public AccessibleContext getAccessibleContext()
{
//Gets the AccessibleContext associated with this JCheckBox.
return null;
}
public String getUIClassID()
{
//Returns a string that specifies the name of the L&F class that renders this component.
return "JCheckBox";
}
protected String paramString()
{
return "JCheckBox";
}
}
|