Stage — the top-level window itselfScene — everything displayed inside that windowNode — every visible element (buttons, labels, images) forming a tree, starting from a root layout paneA visual, drag-and-drop design tool for laying out JavaFX UIs. It produces an FXML file (an XML description of the UI) that your Java code loads at runtime.
setOnAction(event -> ...) registers a lambda as the handlerVBox / HBoxStack children vertically / horizontally.
BorderPaneTop, bottom, left, right, and center regions.
GridPaneArrange children in rows and columns.
| Method | Purpose |
|---|---|
setScene(scene) | attaches the content to display |
setTitle(text) | sets the window's title bar text |
show() | makes the window visible |
setResizable(bool) | allows/blocks window resizing |
| Method | Purpose |
|---|---|
setText(str) / getText() | set/read a Label/Button/TextField's text |
setOnAction(handler) | registers a click/action event handler |
setVisible(bool) | show/hide the node |
setDisable(bool) | enable/disable user interaction |
setStyle(css) | applies inline CSS styling |