new JavaFX HBox - Java JavaFX

Java examples for JavaFX:HBox

Description

new JavaFX HBox

Demo Code


//package com.java2s;

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

import javafx.scene.layout.HBox;

public class Main {
    public static HBox newHBox(Insets insets, double spacing, Pos alignment) {
        final HBox pane = new HBox(spacing);
        pane.setAlignment(alignment);/*from  ww  w  . j a  v a 2  s . c  o m*/
        pane.setPadding(insets);
        return pane;
    }
}

Related Tutorials