Label, Button, TextField, PasswordField, TextArea, CheckBox, RadioButton and ToggleGroup
Learn Label, Button, TextField, PasswordField, TextArea, CheckBox, RadioButton and ToggleGroup (Phase 2 · JavaFX UI Components (Essential), JavaFX) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Text and button controls • Label (non-editable text, optional graphic, wrapText , labelFor mnemonic), Button ( setOnAction , setDefaultButton(true) reacts to Enter, setCancelButton(true) to Esc, setGraphic ), TextField (single line: getText , setPromptText , textProperty() ), PasswordField (masked; do not keep the password string longer than needed), TextArea (multi-line, setWrapText , setPrefRowCount ).