FileDocCategorySizeDatePackage
Grid.javaAPI DocExample581Sat Apr 23 22:35:40 BST 2005None

Grid

public class Grid extends JPanel

Fields Summary
Constructors Summary
public Grid()

    setLayout(new GridLayout(3,	2));
    add(new JButton("One"));
    add(new JButton("Two"));
    add(new JButton("Three"));
    add(new JButton("Four"));
    add(new JButton("Five"));
  
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame frame = new JFrame("Grid");
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    frame.setSize(200, 200);
    frame.setLocation(200, 200);
    frame.setContentPane(new Grid());
    frame.setVisible(true);