Mona,
Try calling either or both of these after you add back in your desired
components:
panel.invalidate();
panel.revalidate();
The following forum is a good place to ask Swing questions like this:
http://forum.java.sun.com/forum.jsp?forum=57
Ted Hill
Software Engineer
www.tomotherapy.com
----- Original Message -----
From: "Mona Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 6:25 PM
Subject: [JAVA2D] Java JPanel display problem
> Hi programmers:
>
> In my code, I do a removeAll() on one of my JPanel. Then I add
new
> components via add(). However, the new components are not showing up.
I've
> tried both repaint() and setVisible ( true ) on my JPanel but the new
components
> still do not show up.
>
> Any help is appreciated.
>
> thanks,
>
> Mona
>
> ==================================================================
> Mona Wong-Barnum
> National Center for Microscopy and Imaging Research
> University of California, San Diego
> http://ncmir.ucsd.edu/
>
> "The truth shall set you free, but first it will piss you off"
> A Landmark instructor
> ==================================================================
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".