Solved

One Applet, Multiple views

Posted on 1998-06-05
3
310 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
[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
 

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

695 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