Created
September 3, 2015 02:31
-
-
Save bekwam/e50d563f400364f1910b to your computer and use it in GitHub Desktop.
Example of JavaFX GridPane
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GridPane grid = new GridPane(); | |
grid.setHgap(10); | |
grid.setVgap(10); | |
grid.setPadding(new Insets(0, 10, 0, 10)); | |
// Category in column 2, row 1 | |
Text category = new Text("Sales:"); | |
category.setFont(Font.font("Arial", FontWeight.BOLD, 20)); | |
grid.add(category, 1, 0); | |
// example of grid pane from https://docs.oracle.com/javafx/2/layout/builtin_layouts.htm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment