Hi John,

>    This may be off topic - I have a AWT application which has a panel
> which I remove and add items to after it has been displayed.  When I
> remove things from the panel they disapear but the panel does 
> not adjust
> for the removed items (in this case a grid layout).  When I add items
> they do not appear.
>    I have tried calls to show, repaint, invalidate.

[...]

>    What is the proper way to get things looking correct after
> removing/adding items from a container in a frame?
> 

        I have found that the following works:

        container.revalidate();
        container.repaint();

        where container is the container you are removing and adding
components to/from. Both calls are necessary though.

Bye,
James Dempsey
IT Services
CSIRO Australia
Phone: (02) 6276 6012
mailto:[EMAIL PROTECTED]

Reply via email to