Solved

Java Swing | Using CardLayout v/s Hiding components

Posted on 2002-05-02
4
305 Views
Last Modified: 2008-03-10
Hi,

We are developing an applet where we need to navigate from one screen to many other screens.

We have two options to achieve this:
1. Use a Card Layout and Flip the panels according to the navigation.
2. Assign Component Index to the Panels while adding to a Main Panel and then hide or show (setVisible) the panels according to the navigation.

Which would be an appropriate approch ?

thanks
anoop
0
Comment
Question by:anooprajr
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 6987684
I'd recomend using CardLayout, simpler and less prone to error.
0
 
LVL 9

Expert Comment

by:Ovi
ID: 6987897
CardLayout
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7992945
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: objects
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8048427
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strCount chalenge 3 51
mapBully challenge 6 93
mapShare challenge 13 70
JAVA part two 5 42
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now