Unit-8 - JAVAFX UI Controls & Multimedia
Unit-8 - JAVAFX UI Controls & Multimedia
Unit-08
JavaFX UI Controls
& Multimedia
Outline
Looping
Label
Button
CheckBox
RadioButton
TextField
TextArea
ComboBox
ListView
ScrollBar
Slider
Video
Audio
Label
Label is used to display a short text or an image, it is a non-editable text control.
It is useful for displaying text that is required to fit within a specific space.
Label can only display text or image and it cannot get focus.
Constructor for the Label class are:
Constructor Description
Label() Creates an empty Label
Label(String text) Creates Label with supplied text
Label(String text, Node graphics) Creates a Label with the supplied text
and graphic.