Solved

Switching screens on applet

Posted on 2004-04-09
3
160 Views
Last Modified: 2010-03-31
Hi!

I am making a wizard to bring up the plotting utility for graph and I am wondering how to accomplish the following behavior of the wizard screen. When a user clicks ‘next’ button, the entire JLabels and JTextFields should change to next screen without switching panel.
If you visit the following site and click ‘next’ button when the sample wizard shows up, you will understand what I am talking about.
http://webdev.apl.jhu.edu/~rbe/java/Homework5/index.html


Any ideas?

Thanks in advance
0
Comment
Question by:dkim18
[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
3 Comments
 
LVL 2

Expert Comment

by:Thunder_scream
ID: 10795666
Hi dkim18,

I think there is many ways to tackle this ...one is e.g (but not that impressing..hehe)
maybe you could save the actual strings(title or whatever) for the lables in a array and call the appropriate one when needed.

For Jtextfields you could play with setting the setVisible(boolean) to hide
the jtextfields that you dont want to show...etc..

hope this helps..

Cheers!
0
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 10795773
0
 
LVL 15

Expert Comment

by:Javatm
ID: 10795804
> I am wondering how to accomplish the following behavior of the wizard screen.
> When a user clicks ‘next’ button, the entire JLabels and JTextFields should
> change to next screen without switching panel.

Actually, I think thats the correct way of making a wizard because thats also what I do. What I mean
is I created a 1st panel w/ all of its components and then if I press next, I set the 1st panel to
setVisible(false); and what I do is to add the next set of panel's to the screen and showing it
by calling the method setVisible(true).

On the back button or back action however what I do is to call setVisible(true); from the 1st panel
and setVisible(false); from the last panel. So that everything could work fine.

In case you dont wanna to use panels you can just use the method setVisible(boolean); from any
components in your program.

Hope that helps . . .
Javatm
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

626 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