Jawa Swing: Dialog with expanding / progressive disclosure?
- by Electrons_Ahoy
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.