Dynamic Forms

Ok, my trouble is this:

I have a form which is build from XML files (I use JDOM),

In any case, I have a JComboBox with which the user chooses next file to use in form creation. When the user picks his next file, I call my form class again and create another form which I nest within my current form and I want the additional elements (textfields, labels, etc) to show up below the Combo Box. However, even though I read the file successfuly and I create another panel to add to my panel, it doesn't display. I tried this.repaint(); but it didn't do anything.

Any suggestions?

Thanks

[622 byte] By [avdic] at [2007-9-26 4:04:54]
# 1
Well, it helps to do setVisible(false); and then setVisible(true);however, this might not be the most effective tool, plus my window does not resize to hold the entire thing. Thanks
avdic at 2007-6-29 13:03:50 > top of Java-index,Archived Forums,Swing...
# 2
checkout: http://axualize.sf.net
russwyte at 2007-6-29 13:03:50 > top of Java-index,Archived Forums,Swing...