FileDocCategorySizeDatePackage
HBoxWithGlue.javaAPI DocExample693Thu Oct 24 20:14:24 BST 2002None

HBoxWithGlue

public class HBoxWithGlue extends JFrame

Fields Summary
Constructors Summary
public HBoxWithGlue()

    super("Box & Glue Frame");
    setSize(350, 100);
    Box box = Box.createHorizontalBox();
    setContentPane(box);
    box.add(Box.createHorizontalGlue());
    for (int i = 0; i < 3; i++) {
      Button b = new Button("B" + i);
      box.add(b);
    }
    box.add(Box.createHorizontalGlue());
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    HBoxWithGlue bt = new HBoxWithGlue();