new JavaFX VBox - Java JavaFX

Java examples for JavaFX:VBox

Description

new JavaFX VBox

Demo Code


//package com.java2s;

import javafx.geometry.Insets;
import javafx.geometry.Pos;

import javafx.scene.layout.VBox;

public class Main {
    public static VBox newVBox(Insets insets, double spacing, Pos alignment) {
        final VBox pane = new VBox(spacing);
        pane.setAlignment(alignment);//from   w  ww . j av a 2  s . c om
        pane.setPadding(insets);
        return pane;
    }
}

Related Tutorials