Example usage for javafx.scene.layout ColumnConstraints setHalignment

List of usage examples for javafx.scene.layout ColumnConstraints setHalignment

Introduction

In this page you can find the example usage for javafx.scene.layout ColumnConstraints setHalignment.

Prototype

public final void setHalignment(HPos value) 

Source Link

Usage

From source file:io.bitsquare.gui.main.overlays.Overlay.java

protected void createGridPane() {
    gridPane = new GridPane();
    gridPane.setHgap(5);/*from w  ww . j ava  2  s. co m*/
    gridPane.setVgap(5);
    gridPane.setPadding(new Insets(30, 30, 30, 30));
    gridPane.setPrefWidth(width);

    ColumnConstraints columnConstraints1 = new ColumnConstraints();
    columnConstraints1.setHalignment(HPos.RIGHT);
    columnConstraints1.setHgrow(Priority.SOMETIMES);
    ColumnConstraints columnConstraints2 = new ColumnConstraints();
    columnConstraints2.setHgrow(Priority.ALWAYS);
    gridPane.getColumnConstraints().addAll(columnConstraints1, columnConstraints2);
}