Java Reference
In-Depth Information
selectOnFocus: true
style: "padding-left: 5; padding-right: 5; "
"text-fill: navy; "
"background-fill: skyblue; "
"font: bold 14pt arial;"
}
]
}
}
In this example, we used the
TextBox
's
style
variable to specify the visual
aspects for the
TextBox
.
With the release of JavaFX 1.2, many new controls have been added to the JavaFX
platform. Table 5.3 lists these. Because these new controls are just being finalized as
the topic is going to press, please visit the topic's Web site,
http://jfxbook.com,
for more detailed information.
Ta b l e 5 . 3
JavaFX Controls
Control
Purpose
Button
A simple push button.
CheckBox
A tri-state selection control typically shown with a check mark.
ComboBox
A control that allows one to pick from a list of pre-defined strings or
optionally enter a custom string.
Hyperlink
An HTML-like text label that responds to rollovers and clicks.
Label
A control useful for displaying text that is required to fit within a
specific space.
ListView
A control to show a list of items that is scrollable.
ProgressBar
A control to show progress.
ProgressIndicator
An indicator to show the user that an operation is in progress.
RadioButton
A
ToggleButton
that belongs to a group.
Slider
A control that allows a user to adjust values within a range.
continues
Search WWH ::
Custom Search