import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; public class DemoFX extends Application { // constants: placeholders (names) that hold a value // once initialized, it cannot change // naming convention is all CAPS, underscore between words // keywords: static final public static final int APP_WIDTH = 400; public static final int APP_HEIGHT = 300; // GUI variables private Button bnOK; // non-GUI, functional variables public void start(Stage stage) { bnOK = new Button("OK"); Scene scene = new Scene(bnOK, APP_WIDTH, APP_HEIGHT); stage.setScene(scene); stage.setTitle("CS112 Demo FX"); stage.show(); } public static void main(String[] args) { launch(args); } }