Re: GUI does not refresh after dialog is gone



<jobs239@xxxxxxxxxxx> wrote:
> In my GUI, I bring up a popup dialog by clicking a button. After I
> click OK on the popup, it goes away, but sometimes I see parts of my
> GUI with white areas. Shouldn't it repaint itself on its own?


It could be a lot of things, since you've told us next-to-nothing about
your code. If you have custom painting code that you've failed to place
properly into a paint (for AWT) or paintComponent (for Swing) method,
then you're likely to see exactly what you describe.

To answer your question precisely, no the window doesn't repaint itself.
It does ask your application to repaint it, and it's up to your
application to respond appropriately.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.


Quantcast