Chapter 13 Flashcards
What does CSS stand for
Cascading Style Sheets
What is a style sheet
Text file that contains one or more style definitions
What is a selector
Determines the node or nodes that are affected by the style definition
What are selector names that begin with a period
Type selectors
When a selector name starts with a period in a JavaFX CSS style definition, it means the selector corresponds to ____.
Specific types of JavaFX nodes
Which of these is written in the correct syntax for a CSS style definition?
.label { -fx-font-size: 20pt; }
If you want to apply styles to all of the nodes in a scene, use the____ selector
.root
The ___ CSS property is used to change a control’s background color in a JavaFX application.
-fx-background-color
When you define a color in CSS, you specify an integer value in the range of ___ for each of the color components (red, green, and blue).
0 through 255
In the hexadecimal color value #05AAFF, the AA value specifies which color component?
green
What style definition applies a background color of #0000FF to all Button controls?
.button { -fx-background-color: #0000FF; }
Adding RadioButton controls to this type of object creates a mutually exclusive relationship between them
ToggleGroup
This RadioButton method returns true if this control is selected
isSelected()
The ___control displays a list of items and allows the user to select one or more items from the list.
ListView
The____control presents its items in a drop-down list.
ComboBox