Re: JFrame resizing
- From: Stephan Lukits <stephan.lukits@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 May 2008 15:16:46 +0200
Kenneth P. Turvey schrieb:
On Wed, 28 May 2008 14:38:27 +0200, Stephan Lukits wrote:
Kenneth P. Turvey schrieb:[...]Thanks for your answer, but that dosen't work either:[...]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.
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
.
- References:
- JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- From: Kenneth P. Turvey
- Re: JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- From: Kenneth P. Turvey
- JFrame resizing
- Prev by Date: Re: JFrame resizing
- Next by Date: Re: JFrame resizing
- Previous by thread: Re: JFrame resizing
- Next by thread: Re: JFrame resizing
- Index(es):