Constructor Button
Button()
Default constructor.
Declaration
public Button()
Button(Action)
Constructs a button with an Action that is triggered when the button is clicked.
Declaration
public Button(Action clickEvent)
Parameters
Type | Name | Description |
---|---|---|
Action | clickEvent | The action triggered when the button is clicked. |
Remarks
By default, a single left mouse click triggers the Action. To change the activator, modify clickable.