Java Reference
In-Depth Information
It returns
true
if the check box state is indeterminate and
false
otherwise. The event
handler for the check box will need to test for the indeterminate state. To do so, add it
to the
Smartphone
event handler, as shown here:
3.
After making these changes, compile and run the program. Now, you can set the state
of the
Smartphone
check box to indeterminate, as shown here:
ListView
Another commonly used control is the list view, which in JavaFX is encapsulated by
ListView
. A
ListView
can display a list of entries from which you can select one or more.