FileDocCategorySizeDatePackage
CardTest.javaAPI DocExample3833Sat Sep 12 03:01:00 BST 1998None

CardPanel

public class CardPanel extends Panel

Fields Summary
Constructors Summary
CardPanel()

	setLayout(new CardLayout());
	add("one", create(new FlowLayout()));
	add("two", create(new BorderLayout()));
	add("three", create(new GridLayout(2, 2)));
	add("four", create(new BorderLayout(10, 10)));
	add("five", create(new FlowLayout(FlowLayout.LEFT, 10, 10)));
	add("six", create(new GridLayout(2, 2, 10, 10)));
    
Methods Summary
java.awt.Panelcreate(java.awt.LayoutManager layout)

	Panel p = new Panel();
	p.setLayout(layout);
	p.add("North",   new Button("one"));
	p.add("West",   new Button("two"));
	p.add("South",  new Button("three"));
	p.add("East",   new Button("four"));
	p.add("Center", new Button("five"));
	return p;
    
public java.awt.DimensionpreferredSize()

	return new Dimension(200, 100);