/*
 * CardLayoutExample2.java
 *
 * Created on April 5, 2000, 2:20 AM
 */
 


/** 
 *
 * @author  mskumar
 * @version 
 */
public class CardLayoutExample2 extends java.applet.Applet {

  /** Initializes the applet CardLayoutExample2 */
  public void init () {
    initComponents ();
  }

  /** This method is called from within the init() method to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the FormEditor.
   */
  private void initComponents () {//GEN-BEGIN:initComponents
    button1 = new java.awt.Button ();
    button2 = new java.awt.Button ();
    button3 = new java.awt.Button ();
    button4 = new java.awt.Button ();
    setLayout (new java.awt.CardLayout ());

    button1.setFont (new java.awt.Font ("Dialog", 0, 11));
    button1.setLabel ("First");
    button1.setBackground (java.awt.Color.lightGray);
    button1.setForeground (java.awt.Color.black);
    button1.addActionListener (new java.awt.event.ActionListener () {
      public void actionPerformed (java.awt.event.ActionEvent evt) {
        button1ActionPerformed (evt);
      }
    }
    );


    add (button1, "card1");

    button2.setFont (new java.awt.Font ("Dialog", 0, 11));
    button2.setLabel ("Second");
    button2.setBackground (java.awt.Color.lightGray);
    button2.setForeground (java.awt.Color.black);


    add (button2, "card2");

    button3.setFont (new java.awt.Font ("Dialog", 0, 11));
    button3.setLabel ("Third");
    button3.setBackground (java.awt.Color.lightGray);
    button3.setForeground (java.awt.Color.black);


    add (button3, "card3");

    button4.setFont (new java.awt.Font ("Dialog", 0, 11));
    button4.setLabel ("Last");
    button4.setBackground (java.awt.Color.lightGray);
    button4.setForeground (java.awt.Color.black);


    add (button4, "card4");

  }//GEN-END:initComponents

  private void button1ActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button1ActionPerformed

    // Add your handling code here:
    
  }//GEN-LAST:event_button1ActionPerformed


  // Variables declaration - do not modify//GEN-BEGIN:variables
  private java.awt.Button button1;
  private java.awt.Button button2;
  private java.awt.Button button3;
  private java.awt.Button button4;
  // End of variables declaration//GEN-END:variables

}