O'Reilly logo

Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required