import javafx.application.Application; import javafx.geometry.VPos; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.*; import javafx.scene.text.Font; import javafx.scene.text.Text; import javafx.scene.text.TextFlow; import javafx.stage.Stage; import java.lang.System; public class ConstraintsOnGridPane extends Application { static public void main(String[] args) { launch(args); } @Override public void start(final Stage primaryStage) throws Exception { //simple example that shows that rowConstraints.setValignment(VPos.); is not working GridPane pane = new GridPane(); pane.add(new Label("This text should be at BOTTOM of the pane"), 0, 0); pane.setStyle("-fx-background-color: LightGreen"); final RowConstraints constraints = new RowConstraints(); constraints.setValignment(VPos.BOTTOM); pane.getRowConstraints().add(constraints); pane.setPrefSize(300, 300); primaryStage.setScene(new Scene(pane)); primaryStage.show(); } }