FileDocCategorySizeDatePackage
HBoxWithGlue.javaAPI DocExample697Mon Nov 09 12:45:48 GMT 1998None

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());
    addWindowListener(new BasicWindowMonitor());
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    HBoxWithGlue bt = new HBoxWithGlue();