Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5341
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: dialog with section hiding |
| Date | Fri, 17 May 2013 16:55:18 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 53 |
| Message-ID | <kn5g5c$g72$1@dont-email.me> (permalink) |
| References | <dialog-20130517151431@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 17 May 2013 14:51:24 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="c498aa78f133f6cb5e6bebb627e8a0fd"; logging-data="16610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/anaMgFYuyJx5jIpyiSd6L" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
| In-Reply-To | <dialog-20130517151431@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:BV15yZdWt3n+O4VKFCzNiOq47Jg= |
| Xref | csiph.com comp.lang.java.gui:5341 |
Show key headers only | View raw
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