Component> Button | TOPUPPREVNEXT |
対応する swing のコンポーネント JButton
コンストラクタ | 機能 |
---|---|
Button ( ) | ラベルなしのボタンを生成する。 |
Button ( String label ) | label で指定した文字列を表示したボタンを生成する。 |
String getLabel ( ) | ボタンに表示されている文字列を返す。 |
void setLable( String label ) | labelで指定した文字列をボタンに設定する。 |
void setActionCommand(String command ) | ボタンが複数ある場合など、 どのボタンが押されたかを識別するための文字列 command を設定する。 |
void addActionListener(ActionListener act ) | このボタンをで発生したイベントを受け取るために、 アクションリスナ act を設定する。 |
更新日:2003-12-23