Skip to content

Instantly share code, notes, and snippets.

@bekwam
Created September 3, 2015 02:31
Show Gist options
  • Save bekwam/e50d563f400364f1910b to your computer and use it in GitHub Desktop.
Save bekwam/e50d563f400364f1910b to your computer and use it in GitHub Desktop.
Example of JavaFX GridPane
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