Chapter 13 Flashcards

1
Q

What does CSS stand for

A

Cascading Style Sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a style sheet

A

Text file that contains one or more style definitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a selector

A

Determines the node or nodes that are affected by the style definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are selector names that begin with a period

A

Type selectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When a selector name starts with a period in a JavaFX CSS style definition, it means the selector corresponds to ____.

A

Specific types of JavaFX nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of these is written in the correct syntax for a CSS style definition?

A

.label { -fx-font-size: 20pt; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If you want to apply styles to all of the nodes in a scene, use the____ selector

A

.root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ___ CSS property is used to change a control’s background color in a JavaFX application.

A

-fx-background-color

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

0 through 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the hexadecimal color value #05AAFF, the AA value specifies which color component?

A

green

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What style definition applies a background color of #0000FF to all Button controls?

A

.button { -fx-background-color: #0000FF; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Adding RadioButton controls to this type of object creates a mutually exclusive relationship between them

A

ToggleGroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This RadioButton method returns true if this control is selected

A

isSelected()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The ___control displays a list of items and allows the user to select one or more items from the list.

A

ListView

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The____control presents its items in a drop-down list.

A

ComboBox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Both the ListView control and the ComboBox control keeps its list of items in a(n) ____object

A

ObservableList

17
Q

A ____ is like a TextField that can accept multiple lines of input.

A

TextArea

18
Q

You use this class to create a menu bar.

A

MenuBar

19
Q

You use this class to create a radio menu item.

A

RadioMenuItem

20
Q

TRUE OR FALSE: If you make any changes to an application’s stylesheet, you have to recompile the Java application in order for the style changes to take effect.

A

False

21
Q

TRUE OR FALSE: If a style definition for a specific type of node contradicts a style rule in the .root definition, the more specific style definition takes precedence over the .root definition

A

True

22
Q

TRUE OR FALSE: You can list only one selector in the first line of a style definition.

A

False

23
Q

TRUE OR FALSE: A node’s setStyle method removes any styles that were previously applied to the node, and replaces them with the new style rule that is passed as an argument.

A

True

24
Q

TRUE OR FALSE: A scroll bar automatically appears when a ListView contains more items than can be displayed in the space provided

A

True

25
Q

TRUE OR FALSE: By default, ListView controls are oriented horizontally.

A

False

26
Q

TRUE OR FALSE: A MenuBar object acts as a container for Menu objects.

A

True

27
Q

TRUE OR FALSE: A Menu object cannot contain other Menu objects.

A

False