FileDocCategorySizeDatePackage
HBox.javaAPI DocExample692Mon Nov 09 12:45:48 GMT 1998None

HBox

public class HBox extends JFrame

Fields Summary
Constructors Summary
public HBox()

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

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

    HBox bt = new HBox();