Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5341
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: dialog with section hiding |
| Date | 2013-05-17 16:55 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <kn5g5c$g72$1@dont-email.me> (permalink) |
| References | <dialog-20130517151431@ram.dialup.fu-berlin.de> |
On 17/05/2013 15:23, Stefan Ram allegedly wrote: > I want to program a dialog in Swing with hidden sections: > > ..---------------------------------------. > | User | > |---------------------------------------| > | - Name (visible) | > | first name: [James ] | > | last name: [Miller ] | > |---------------------------------------| > | + Day of Birth (hidden) | > |---------------------------------------| > | - address | > | city: [New York ] | > | street: [avenue ] | > '---------------------------------------' > > . Now, when the user clicks »+«, this changes to: > > ..---------------------------------------. > | User | > |---------------------------------------| > | - Name | > | first name: [James ] | > | last name: [Miller ] | > |---------------------------------------| > | - Day of Birth (shown) | > | year: [1999] | > | month: [01] | > | day: [01] | > |---------------------------------------| > | - address | > | city: [New York ] | > | street: [avenue ] | > '---------------------------------------' > > When the user now clicks on »-« (in front of »Day«), > the dialog changes back to the first form. > > I guess I could figure out how to do it, but is there > any prior art related to this? > > Maybe there is a name for such a thing? > > Any ideas how to implement this efficiently (not > reducing the time the computer needs to run this, > but my time to code it!)? JTree <http://docs.oracle.com/javase/7/docs/api/javax/swing/JTree.html> with some rendering tweaks. Then just show in it a JOptionPane dialog. -- DF.
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar
Re: dialog with section hiding Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-05-17 16:55 +0200 Re: dialog with section hiding "John B. Matthews" <nospam@nospam.invalid> - 2013-05-17 14:04 -0400
csiph-web