Jawa Swing: Dialog with expanding / progressive disclosure?
Posted
by
Electrons_Ahoy
on Stack Overflow
See other posts from Stack Overflow
or by Electrons_Ahoy
Published on 2010-12-28T23:48:21Z
Indexed on
2010/12/28
23:54 UTC
Read the original article
Hit count: 298
I've got a dialog in a desktop Java Swing app.
What I want is a classic Windows-style Progressive Disclosure dialog, where pressing a "More Options" button opens up a whole extra batch of options on the dialog. (Which can then be hidden again by clicking that same button, which now says something like "Hide".)
What's the right way to do this in Swing?
I can't seem to google-up anything directly relating to this, and what I have found boils down to "reset the preferred dimensions to 0 and revalidate" which can't possibly be the right way to do this and also causes all kinds of wacky things to happen.
© Stack Overflow or respective owner