This is the fourth tutorial in JavaFX 2.0 Layout series. It's about FlowPane layout. FlowPane lays out its children in a flow that wraps at the flowpane's boundary. A horizontal flowpane (the default) will layout nodes in rows, wrapping at the flowpane's width. A vertical flowpane lays out nodes in columns, wrapping at the flowpane's height. If the flowpane has a border and/or padding set, the content will be flowed within those insets. |
FlowPane |
Check other tutorials from JavaFX Layout series by clicking on the image above.
ps: "import javafx.scene.layout.GridPane;" not needed can be removed
ReplyDeleteThanks for the feedback.
ReplyDeleteFixed. :)