PROGRAMMING

  MINTE9
REMEMBERS




Last update:   01-11-2021

Components

p322 Controls are GUI components (Labels, TextFields, Buttons).
 
Scene Builder ...
Containers / Add VBox
Controllers / Add Button
Save as ... button.fxml
Preview ... Show Preview

Scene Builder

Scene Builder produces the same code regardless of the IDE (full controll via CSS).
 
/opt/scenebuilder

FXML

The FXML code is separate from the program logic (source code).
 
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.VBox?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" 
    minHeight="-Infinity" minWidth="-Infinity" 
    prefHeight="400.0" prefWidth="600.0" 
    xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1">
   <children>
      <Button mnemonicParsing="false" text="Button" />
   </children>
</VBox>

Questions    
First App
        A B C D E F
🔔
1/1