Re: JFrame resizing
- From: "Kenneth P. Turvey" <kt-usenet@xxxxxxxxxxxxxxxxxx>
- Date: 28 May 2008 12:52:04 GMT
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:
Actually, I think I might know what's bothering you. I'm guessing you
don't want the frame to resize and then snap back to the size you
specify. You just want it to stay the size you specify without any of
this snapping back stuff. Basically you want to allow the frame to grow,
but not beyond a certain point.. or shrink, but not beyond a certain
point.
Unfortunately swing won't let you do these things. The closest you're
going to get is having the frame snap back to an acceptable size. I
don't know why Swing doesn't have a way to do what you want. It is a
common request, but it doesn't.
Hopefully I'm just incorrect about what you really want and it is
something we can do something about.
--
Kenneth P. Turvey <kt-usenet@xxxxxxxxxxxxxxxxxx>
http://www.electricsenator.net
Unix gives you just enough rope to hang yourself -- and then a couple
of more feet, just to be sure.
-- Eric Allman
.
- References:
- JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- From: Kenneth P. Turvey
- Re: JFrame resizing
- From: Stephan Lukits
- 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):
Relevant Pages
|