new JavaFX GridPane - Java JavaFX

Java examples for JavaFX:GridPane

Description

new JavaFX GridPane

Demo Code


//package com.java2s;

import javafx.geometry.Insets;

import javafx.scene.layout.GridPane;

public class Main {
    public static GridPane newGridPane(Insets insets, double hgap,
            double vgap) {
        final GridPane pane = new GridPane();
        pane.setHgap(hgap);//from www.  j  a v a 2s  .co  m
        pane.setVgap(vgap);
        pane.setPadding(insets);
        return pane;
    }
}

Related Tutorials