Some Terminology you should know before start working on javafx

All components to be displayed inside a JavaFX application must be located inside a scene. The names for "stage" and "scene" are inspired by a theater. A stage can display multiple scenes, just like in a theater play.

Stage
Represents windows, top level container
Many setter methods: setTitle(), setWidth()
You can create multiple stages and use one or another.

Scene
Each stage has a scene
Scene holds controls (buttons, labels, etc)

Pane
You can put controls in Scenes directly, but we usually Panesfor better layout

Examples: StackPane, BorderPane, HBox, VBox

Comments

Popular posts from this blog

Filter In Javafx

Kotlin with StandAlone Complier