作って、ばらして、パソコン三昧!気づけば部屋は、「ガラクタ」?だらけ...

作って、ばらして、パソコン三昧!気づけば部屋は、「ガラクタ」?だらけ...

Class Checkbox


+-- java.awt.Component
+-- java.awt.Checkbox

public class Checkbox extends Component implements ItemSelectable, Accessible
A check box is a graphical component that can be in either an "on" (true) or "off" (false) state. Clicking on a check box changes its state from "on" to "off," or from "off" to "on."

Constructors

Checkbox() - no label.
Checkbox(String label) - the specified label.
Checkbox(String label, boolean state) + sets the specified state.
Checkbox(String label, boolean state, CheckboxGroup group)
Checkbox(String label, CheckboxGroup group, boolean state) + in the specified check box group.

Method

void addItemListener(ItemListener l)
void addNotify()
AccessibleContext getAccessibleContext()
CheckboxGroup getCheckboxGroup()
ItemListener[] getItemListeners()
EventListener[] getListeners(Class listenerType)
Object[] getSelectedObjects()
boolean getState()
String getLabel()
protected String paramString()
protected void processEvent(AWTEvent e)
protected void processItemEvent(ItemEvent e)
void removeItemListener(ItemListener l)
void setCheckboxGroup(CheckboxGroup g)
void setLabel(String label)
void setState(boolean state)





© Rakuten Group, Inc.
X
Mobilize your Site
スマートフォン版を閲覧 | PC版を閲覧
Share by: