< prev index next >

modules/graphics/src/main/java/javafx/scene/layout/RowConstraints.java

Print this page

        

*** 42,52 **** * will use those constraint values when computing the row's height and layout. * <p> * For example, to create a GridPane with 10 rows 50 pixels tall: * <pre><code> * GridPane gridpane = new GridPane(); ! * for (int i = 0; i < 10; i++) { * RowConstraints row = new RowConstraints(50); * gridpane.getRowConstraints().add(row); * } * </code></pre> * Or, to create a GridPane where rows take 25%, 50%, 25% of its width: --- 42,52 ---- * will use those constraint values when computing the row's height and layout. * <p> * For example, to create a GridPane with 10 rows 50 pixels tall: * <pre><code> * GridPane gridpane = new GridPane(); ! * for (int i = 0; i &lt; 10; i++) { * RowConstraints row = new RowConstraints(50); * gridpane.getRowConstraints().add(row); * } * </code></pre> * Or, to create a GridPane where rows take 25%, 50%, 25% of its width:
< prev index next >