Re: adding components dynamically

1999-08-25 Thread Justin Lawler
try pack(), as this will invoke the Layout manager and set the components to there correct size. Justin. Yohans Mendoza wrote: > hi all, > > I have this applet in which the user presses a button and a nuew panel get > inserted into one of the areas of the applet. > The problem is that when I ca

Re: adding components dynamically

1999-08-24 Thread Nathan Meyers
Try calling invalidate() and then validate() on the component you're inserting into. Nathan Yohans Mendoza wrote: > > hi all, > > I have this applet in which the user presses a button and a nuew panel get > inserted into one of the areas of the applet. > The problem is that when I call repain

adding components dynamically

1999-08-24 Thread Yohans Mendoza
hi all, I have this applet in which the user presses a button and a nuew panel get inserted into one of the areas of the applet. The problem is that when I call repaint() the panel is not added, I have to resize the window of the applet to be able to see the new panel added. Do I need to overrid