Constructor JButton(String text)
Member of: javax.swing.JButton
[api documentation ] [ main menu]

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

1 return new JButton("User Font");
2 JButton button = new JButton(label);
3 button = new JButton(getName());
4 JButton b = new JButton("DummyButton");
5 installButton = new JButton("Install (Jar file Chooser)");
6 cancelButton = new JButton("Cancel");
7 addButton = new JButton("Add");
8 JButton newButton = new JButton(s);
9 startIdeButton = new JButton(NbBundle.getMessage(UpgradeWizard.class, "BTN_Start_IDE")); //NOI18N
10 new JButton(UIManager.getString("SplitPane.leftButtonText")),
11 button = new JButton(label);
12 buttonAddCategory = new JButton(addButtonText);
13 this.previous=new JButton("<< Previous");
14 this.removeButton = new JButton("Remove selected row");
15 JButton btnOK = new JButton("Done");
16 return new JButton("Capture").getPreferredSize().width;
17 editButton = new JButton ("Edit");
18 browseButton = new JButton("Browse");
19 okButton = new JButton("OK");
20 JButton button = new JButton(label);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.