public
Button
(
String
text)
Creates a button with the specified text as its label.
Parameters:
text
A text string for its label.
Diagram:
Labeled