Solved

Java Swing | Using CardLayout v/s Hiding components

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I remove an object from a 3 53
eclipse console opening separately 2 38
Eclipse with various Java releases 7 51
Java pass by reference 3 23
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

726 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