JDialog resize question

Hi

I have a JDialog. I add components(label, buttons, checkbox, panel) to it. The panel holds

a scrollpane with a jtable. The table contents change depending on the checkbox selection.

The table shows 3 rows of data when the checkbox is not selected and 7 rows of data when the

check box is selected. I do not want the vertical scroll bars to be displayed instead would

like the dialog to change the size depending on the check box selection. Is this possible?

Any hints?

Thanks

[528 byte] By [seemap123a] at [2007-11-27 4:43:08]
# 1
add a listener to your tablemodel and call pack() on the dialog.
tjacobs01a at 2007-7-12 9:54:52 > top of Java-index,Desktop,Core GUI APIs...