?
Solved

One Applet, Multiple views

Posted on 1998-06-05
3
Medium Priority
?
311 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 200 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 real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

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 …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 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