JavaFX Flashcards

Understand about JavaFX theory as well as code

1
Q

What is JavaFX?

A

A Java API for creating GUI with a consistent look and feel over multiple platforms

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

What does JavaFX contain?

A
  • Access to Java APIs
  • CSS styling
  • Access to Swing
  • Hardware acceleration
  • Integrated 2D, 3D graphics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does JavaFX user interface container contain?

A
  • A stage and a scene
  • Stage class is the top-level container
  • Scene class is the container for all the content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the scene content usually represented as?

A

A hierarchical scene graph of nodes

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

What is a scene graph?

A

It is a hierarchical tree of nodes that represents all the visual elements of the user interface (It can handle input and can be rendered)

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

What is FlowPane?

A

A simple layout to place components from left to right in a row until no space in the current row left

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

What is GridPane?

A

A layout to place components in a rectangular grid (from left to right, top to bottom) assigning the same size for each component

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

What is BorderPane?

A

A Pane that divides the container into 5 regions (top, bottom, left, right, center)

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

What is StackPane?

A

A layout to place the components on top of each other

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