Re: JFrame resizing



Kenneth P. Turvey schrieb:
On Wed, 28 May 2008 14:38:27 +0200, Stephan Lukits wrote:

Kenneth P. Turvey schrieb:
[...]
[...]
Ok, I can't really tell you why this isn't working, but the paint
method is the wrong place for this kind of code. You should put it in
a ComponentListener.
Thanks for your answer, but that dosen't work either:

The code you posted works great here. What is it doing or not doing that you don't like?

Thanks again for your effort. It just doesn't snap back!
Precise, it does it only occasionally. It does:
"System.out.println("Resize to 200x100");" as I can
see in my console window, (thus it is in the if branch)
but it dosen't do the resizing. Debugging tells my that
the frames' size attribute is as desired but the actual
window isn't resized???

regards
Stephan
.