posted 21 years ago
You have to call invalidate() and validate() (and possibly repaint()) on the JPanel you are adding the new components to... if you're adding components dynamically, the layout manager doesn't re-layout the panel. invalidate() and validate() tells the layout manager to re-layout the panel.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.