Method setText(String text)
Return type: void
Member of: javax.swing.AbstractButton
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 btnNext.setText("Finished");
2 acceptButton.setText("Save");
3 jButtonClose.setText("Close");
4 button.setText("Wake me up!");
5 this.getHoldButton().setText("Join");
6 acceptButton.setText("Open");
7 menu.setText("Add");
8 widget.setText("WARNING: No password, click to edit");
9 finishButton.setText("Finish");
10 jButton1.setText("jButton1");
11 setText("");
12 NewButton.setText("");
13 setText("");
14 button.setText("");
15 testB.setText(" Play ");
16 button.setText("");
17 setText((value ==null) ? "" : value.toString());
18 jButton_OK.setText("OK");
19 menuItem.setText(frame.getTitle());
20 ((JButton)editorComponent).setText(value.toString());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.