Suraya, I may be misinterpreting your question, but in case you are unaware of it, I think you probably need to use the "CardLayout". May I suggest the How to Use CardLayout section of the Java Tutorial. Good Luck, Avi.
Post by:autobot
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
a bit of art, as a gift, the permaculture playing cards