public class Button
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

A simple button control. The button control can contain text and/or a graphic. A button control has three different modes

When a button is pressed and released a ActionEvent is sent. Your application can perform some action based on this event by implementing an javafx.event.EventHandler to process the ActionEvent. Buttons can also respond to mouse events by implementing an javafx.event.EventHandler to process the javafx.scene.input.MouseEvent

MnemonicParsing is enabled by default for Button.

Example:

Button button = new Button("Click Me");

extends ButtonBase

Since:  JavaFX 2.0