JavaFX Flashcards
Understand about JavaFX theory as well as code
What is JavaFX?
A Java API for creating GUI with a consistent look and feel over multiple platforms
What does JavaFX contain?
- Access to Java APIs
- CSS styling
- Access to Swing
- Hardware acceleration
- Integrated 2D, 3D graphics
What does JavaFX user interface container contain?
- A stage and a scene
- Stage class is the top-level container
- Scene class is the container for all the content
What is the scene content usually represented as?
A hierarchical scene graph of nodes
What is a scene graph?
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)
What is FlowPane?
A simple layout to place components from left to right in a row until no space in the current row left
What is GridPane?
A layout to place components in a rectangular grid (from left to right, top to bottom) assigning the same size for each component
What is BorderPane?
A Pane that divides the container into 5 regions (top, bottom, left, right, center)
What is StackPane?
A layout to place the components on top of each other