Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

One Applet, Multiple views

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
georita
Asked:
georita
1 Solution
 
muesliCommented:
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
 
botonCommented:
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
 
georitaAuthor Commented:
Thanks,
I figured it out myself already.  Thanks for the answer tho
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now