Java tutorial
import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; public class Main extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { BorderPane bp = new BorderPane(); bp.setPadding(new Insets(10, 50, 50, 50)); Scene scene = new Scene(bp); primaryStage.setScene(scene); primaryStage.titleProperty() .bind(scene.widthProperty().asString().concat(" : ").concat(scene.heightProperty().asString())); primaryStage.show(); } }