FileDocCategorySizeDatePackage
ColumnLayoutPane.javaAPI DocExample1077Sat Jan 24 10:44:32 GMT 2004je3.gui

ColumnLayoutPane

public class ColumnLayoutPane extends JPanel

Fields Summary
Constructors Summary
public ColumnLayoutPane()

	// Specify a ColumnLayout LayoutManager, with right alignment
	this.setLayout(new ColumnLayout(5, 5, 10, ColumnLayout.RIGHT));

	// Create some buttons and set their sizes and positions explicitly
	for(int i = 0; i < 6; i++) {
	    int pointsize = 8 + i*2;
	    JButton b = new JButton("Point size " + pointsize);
	    b.setFont(new Font("helvetica", Font.BOLD, pointsize));
	    this.add(b);
	}
    
Methods Summary