Solved

Java Swing | Using CardLayout v/s Hiding components

Posted on 2002-05-02
4
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

691 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