Can I change the size of a Dialog (a modal dialog, like the those created by JOptionPanes)?
What I actually want to do is to have two textfields and a checkbox in the dialog. When you uncheck the checkbox, one of the two textfields hide itself. Thus the size of the Dialog should adapt (i.e., become smaller).
I'm updating an old version of java code (not authored by me), which uses a JOptionPane to bring up a JOptionPane.showConfirmDialog(//argument list//), with a fixed size and no show/hide component. Now the new version has several show/hide components and thus needs a changeable size.
Now I understand your approach, and it works for me!
[ September 13, 2006: Message edited by: Biliang Zhou ] [ September 13, 2006: Message edited by: Biliang Zhou ]