FileDocCategorySizeDatePackage
VBox.javaAPI DocExample723Thu Oct 24 20:14:24 BST 2002None

VBox

public class VBox extends JFrame

Fields Summary
Constructors Summary
public VBox()

    super("Vertical Box Test Frame");
    setSize(200, 100);
    Panel box = new Panel();

    // Use BoxLayout.X_AXIS below if you want a horizontal box
    box.setLayout(new BoxLayout(box, BoxLayout.Y_AXIS)); 
    setContentPane(box);
    for (int i = 0; i < 3; i++) {
      Button b = new Button("B" + i);
      box.add(b);
    }
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    VBox bt = new VBox();