FileDocCategorySizeDatePackage
GridLayoutPane.javaAPI DocExample1024Sat Jan 24 10:44:32 GMT 2004je3.gui

GridLayoutPane

public class GridLayoutPane extends JPanel

Fields Summary
Constructors Summary
public GridLayoutPane()

    // Layout components into a grid three columns wide, with the number
    // of rows depending on the number of components.  Leave 10 pixels
    // of horizontal and vertical space between components
    this.setLayout(new GridLayout(0, 3, 10, 10));
    // Add some components
    for(int i = 1; i <= 12; i++) this.add(new JButton("Button #" + i));
  
Methods Summary