Table 9-5. JavaFX Controls

Control

Description

Label

A non-editable text control that is typically used to display the label for another control.

Button

Represents a command button control. It can display text and an icon. It generates an ActionEvent when it is activated.

Hyperlink

Represents a hyperlink control, which looks like a hyperlink in a webpage. It generates an ActionEvent when it is activated.

MenuButton

Looks like a button and behaves like a menu. When it is activated, it shows a list of options in the form of a pop-up menu. To execute a command when a menu option is selected, you need to add the ActionEvent handler to the MenuItems added to the MenuButton.

ToggleButton

Represents a two-state button control. ...

Get Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.