Re: A fixed size window in Java



C. wrote:
The problem is that the window is not repainted. I have minimized and maximized it and the display area has been repainted ok. But calling repaint() after validate() doesn't work.

parent.revalidate(); parent.repaint(); should work. A big advantage of revalidate over invalidate is that you can call it as much as you want, but all the calls will be collected together so it wont be slow.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.