FileDocCategorySizeDatePackage
BorderLayoutPane.javaAPI DocExample1113Sat Jan 24 10:44:32 GMT 2004je3.gui

BorderLayoutPane

public class BorderLayoutPane extends JPanel

Fields Summary
String[]
borders
Constructors Summary
public BorderLayoutPane()

      
	// Use a BorderLayout with 10-pixel margins between components
	this.setLayout(new BorderLayout(10, 10));
	for(int i = 0; i < 5; i++) {          // Add children to the pane
	    this.add(new JButton(borders[i]),    // Add this component
		     borders[i]);                // Using this constraint
	}
    
Methods Summary