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 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 override paint method, or something?
> I'm using swing
> 
> TIA
> 
> --Yohans
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Yohans Mendoza                          Unix Administrator
> Sirius Images Inc.                      [EMAIL PROTECTED]
> http://www2.utep.edu/~yohans            http://www.sirius-images.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to