Solved

Java Swing | Using CardLayout v/s Hiding components

Posted on 2002-05-02
4
308 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
base64 decode encode 12 119
JUnit 4 @Before and @BeforeClass differences 3 47
Error trying to install RTMT Win7 5 38
session migration servlets 2 23
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

947 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

18 Experts available now in Live!

Get 1:1 Help Now