Need help with sequential displayin of cards

i am doing an assignment where my applet is supposed to be a card game. here is how its sposed to look lik:

http://www.cs.tcu.edu/10403/Lab6/L6.html

and what i am having trouble with is getting the cards to show up the way they do. here was my attempt at solving this problem:

import java.awt.*;

import java.applet.*;

import java.awt.event.*;

public class Lab6Project extends Applet implements ..... ActionListener

{

.

.

.

.

TextField tf1 = new TextField(10),

ta1 = new TextField(),

ta2 = new TextField(),

ta3 = new TextField(),

ta4 = new TextField(),

ta5 = new TextField();

.

.

.

.

boolean ta2state = false,

ta3state = false,

ta4state = false,

ta5state = false;

public void init()

{

pmiddle2a.add(ta1);

pmiddle2a.setLayout(null);

ta1.setBounds(10, 10, 100, 160);

ta1.setEditable(false);

ta1.setVisible(true);

pmiddle2.add(pmiddle2b);

pmiddle2b.add(ta2);

pmiddle2b.setLayout(null);

ta2.setBounds(10, 10, 100, 160);

ta2.setEditable(false);

ta2.setVisible(false);

pmiddle2.add(pmiddle2c);

pmiddle2c.add(ta3);

pmiddle2c.setLayout(null);

ta3.setBounds(10, 10, 100, 160);

ta3.setEditable(false);

ta3.setVisible(false);

pmiddle2.add(pmiddle2d);

pmiddle2d.add(ta4);

pmiddle2d.setLayout(null);

ta4.setBounds(10, 10, 100, 160);

ta4.setEditable(false);

ta4.setVisible(false);

pmiddle2.add(pmiddle2e);

pmiddle2e.add(ta5);

pmiddle2e.setLayout(null);

ta5.setBounds(10, 10, 100, 160);

ta5.setEditable(false);

ta5.setVisible(false);

}

public void actionPerformed(ActionEvent e)

{

if (e.getSource() == blower) //this is one of the lower button

{

if (ta2state == false)

{

ta2state = true;

ta2.setVisible(true);

}

}

}

}

what i was trying to do was that make the applet set the next card visible if the card isn't but it isn't workin. if theres a mistake with the brackets, ignore them, its probably a copying error since the applet compiles n runs, but doesnt do taht part of the code or something. thanks for any help, please help!

[2348 byte] By [gu3sshooiama] at [2007-11-27 0:20:08]
# 1
Question what does the cards do....?Well firstly read more about different layouts/ specifically the CardLayout than if what you trying to do is hide the other cards than read about the root paneGood Luck
Irvina at 2007-7-11 22:12:47 > top of Java-index,Java Essentials,New To Java...