Solved

One Applet, Multiple views

Posted on 1998-06-05
3
305 Views
Last Modified: 2012-06-21
I am writing a database applet that will have multiple 'views' that collects differnt bits of data in the browser sort of like a 'wizard' concept.  My question is:
How do I organize the diffent views.  I am using Symantec Visual Cafe 2.5.  In J++ I noticed that they generate their gui code through a resource wizard.  It looks like they use the Layout manager object to define a particular 'view'.  Is there  better way to do this? Using Canvas, or Panel ?
What should I do
I want one applet, multiple views.
Thanks,
Georg
0
Comment
Question by:georita
3 Comments
 

Accepted Solution

by:
muesli earned 50 total points
ID: 1222273
Hi,

The easy / standard way to create more complex user interfaces is to have many panels, each with it's own layout manager.  The panels are then nested to create the user interfaces you want.  For a "wizard"-like dialog, one way would be to use a "tab panel" widget.  I'm sure that visual cafe comes with one. A tab panel works by flipping between different sub-panels.

You can configure it to have one sub-panel/tab for each 'view'.  You can put buttons on the bottom of each view to make it look like a wizard with "next" and "previous" on them. You'd configure them to send a message to the tab panel to flip to the proper tab when clicked.

On the last tab, you'd have a "finished" button that would cause all of the data to be saved.  You could make it enabled or disabled depending on whether the user filled in enough information.

-------

A related idea is:  what to do when the data has been entered?  How should the applet appear?  You can put the tab panel into another panel with a "CardLayout".  This also flips between multiple panels, but without the tabs - only one panel is visible at a time.  You could have this CardLayout panel contain two sub panels:  1) A panel with a label and button saying "Click here to enter the information", and 2) A Panel containing the card layout described above.  The "finished" button on the tab panel would cause this "outer" CardLayout to flip back to the introductory sub panel.  

(I hope this talk about all the different panels hasn't been too confusing!)
0
 

Expert Comment

by:boton
ID: 1222274
Hi
I would try the Tab Panel component, adding 2 buttons (previous-next) to the bottom of each panel addded.
Using the interaction wizard to trigger (button) to next tab or previous tab.
on the last pane a review and rewind options to correct mistakes.
I hope this can help you
Beto
0
 

Author Comment

by:georita
ID: 1222275
Thanks,
I figured it out myself already.  Thanks for the answer tho
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
micro services vs rest web services 16 105
diffSum example 4 37
factorial example 4 40
null output 3 25
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 second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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