Re: JFrame resizing



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
.



Relevant Pages

  • Re: A little challenge for relativists.
    ... >>an observer, let's call him Bilge. ... > That doesn't define the frame. ... > have to specify what it means. ... the poincare algebra" or things like that. ...
    (sci.physics.relativity)
  • Re: A little challenge for relativists.
    ... To define a frame, and initialize the ... >>> have to specify what it means. ... > I have no problem with classical mechanics. ... > Yes, it is a waste of time, since you're wrong on several counts. ...
    (sci.physics.relativity)
  • Re: my swing - critics anyone?
    ... there are so many unusual aspects of your swing being ... without having to turn your hips as well. ... spine...allowing your shoulders to turn further than your hips. ... In the upper right frame, the shoulders are turned past 90 degrees, and the ...
    (rec.sport.golf)
  • Re: my swing - critics anyone?
    ... The result is an all-arms swing. ... proof of this can be found in the lower two frames of the sequence. ... lower left frame, the hands are about about deliver the club to the ball. ...
    (rec.sport.golf)
  • Re: numbering in headers and footers
    ... Since you specify the Header and Footer toolbar, ... PAGE field in a frame. ... but on all the two digit numbers the second ...
    (microsoft.public.word.docmanagement)