// FlowPaneTest.javapackage com.jdojo.container;import javafx.application.Application;import javafx.scene.Scene;import javafx.scene.control.Button;import javafx.scene.layout.FlowPane;import javafx.stage.Stage;public class FlowPaneTest extends Application {        public static void main(String[] args) {                Application.launch(args);        }        @Override        public void start(Stage stage) {                double hgap = 5;                double vgap = 10;                FlowPane root = new FlowPane(hgap, vgap);                // Add ten buttons to the flow pane                for(int i = 1; i <= 10; i++) {                        root.getChildren().add(new Button("Button " + i));                }                root.setStyle("-fx-padding: ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.