Java Swing BoxLayout createVerticalBox(Component... cs)

Here you can find the source of createVerticalBox(Component... cs)

Description

create Vertical Box

License

Open Source License

Declaration

public static Box createVerticalBox(Component... cs) 

Method Source Code


//package com.java2s;

import java.awt.Component;

import javax.swing.Box;

public class Main {
    public static Box createVerticalBox(Component... cs) {
        Box box = Box.createVerticalBox();
        for (Component c : cs)
            box.add(c);/*w  ww . java  2 s .  c om*/
        return box;
    }
}

Related

  1. createPanelWithBoxLayout()
  2. createTitledPanel(JComponent component, String title)
  3. createTopAndCenter(JComponent top, JComponent center)
  4. createVertBox(Component... comps)
  5. createVerticalBox(Component... comps)
  6. createVerticalBoxLayout(Component... components)
  7. execLoop(JComponent editor)
  8. hbox(Component[] components, int spacing)
  9. makeVerticalBoxPanel(int margin)