FileDocCategorySizeDatePackage
CycleCards.javaAPI DocExample636Fri Feb 14 14:12:40 GMT 1997None

CycleCards

public class CycleCards extends Applet implements ActionListener

Fields Summary
CardLayout
cards
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

		cards.next( this );
	
public voidinit()


	   
		setLayout( cards );

		Button button;
		button = new Button("Component One");
		button.addActionListener( this );
		add( "One", button );
		button = new Button("Component Two");
		button.addActionListener( this );
		add( "Two", button );
		button = new Button("Component Three");
		button.addActionListener( this );
		add( "Three", button );

		cards.show(this, "Two");