I am trying to develop a Java Program capable of showing a series of
JComboBoxes. I have them all laid out using SpringLayout. When one
ComboBox has "custom" selected I would like to show an additional JComboBox
at the bottom of the Frame. I can do this by making the frame large enough
to include all boxes and then using setVisible on the last one. However, I
would instead like to make additional room available at the bottom of the
Framd and then show the last JComboBox. I have tried changing the
Constraint on the contentPane which correctly resizes the frame but messes
up the position of the inition JComboBoxes.
Thank you for your help.
R
John McGrath - 19 Dec 2004 00:37 GMT
> I can do this by making the frame large enough to include all boxes
> and then using setVisible on the last one. However, I would instead
> like to make additional room available at the bottom of the Framd and
> then show the last JComboBox.
You seem to be making a distinction between using setVisible() on the
JComboBox and "show"ing it. Since show() is just a deprecated method
that does the same thing as setVisible(true), I do not understand the
difference. Would you please try to be more specific about what you
are doing? Perhaps you might include some code?

Signature
Regards,
John McGrath