< prev index next >
modules/graphics/src/main/java/javafx/scene/layout/ColumnConstraints.java
Print this page
@@ -42,11 +42,11 @@
* will use those constraint values when computing the column's width and layout.
* <p>
* For example, to create a GridPane with 5 columns 100 pixels wide:
* <pre><code>
* GridPane gridpane = new GridPane();
- * for (int i = 0; i < 5; i++) {
+ * for (int i = 0; i < 5; i++) {
* ColumnConstraints column = new ColumnConstraints(100);
* gridpane.getColumnConstraints().add(column);
* }
* </code></pre>
* Or, to create a GridPane where columns take 25%, 50%, 25% of its width:
< prev index next >