Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expandable Forms

Status
Not open for further replies.

Dijkstra30

Programmer
Oct 24, 2005
13
RO
Suppose there are some data fields I am about to edit.
On the form, I can click an OK button to save data or an ADVANCED>> button which will expand the form with 3 more fields (for example).
Is there anything that can help me implement this type of scenario?
 
A simple desktop app form like:
-------------------------------------
Firstname: [______________]
Lastname: [______________]

[Details>>][Save]
-------------------------------------
And when i click the Details button the form should look like this:

-------------------------------------
Firstname: [______________]
Lastname: [______________]

State: [______________]
Provence: [______________]

[Hide Details<<][Save]
-------------------------------------
 
Assumming you're using Swing for your app, you can add the extra components to a JPanel, and make it visible or not when the user press the Detais button.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top