Re: JFrame resizing
- From: Stephan Lukits <stephan.lukits@xxxxxxxxxxxxxxxx>
- Date: Thu, 29 May 2008 10:20:15 +0200
Andrew Thompson schrieb:
On May 28, 9:34 pm, Stephan Lukits <stephan.luk...@xxxxxxxxxxxxxxxx>> [...]
wrote:
...
(I actually want to make sure, that the frams' size dosen't
go below a specific size).
<sscce>
</sscce>
Thanks for your answer to the above question. This question
unfortunately is a simplification of what I actually want.
Resizing was an important part of the question. Now I try
to be precise and short (excuse my english):
- I need a Frame where I can pixelwise draw to, thus no
automatic layout manger/manging.
- There is a minimum frame size, a maximum Frame size
and if the user resizes the frame there is a "best
fitting" frame size due to the user resizing. That
means that the programm can't necessary full fill the
users desired size but it tries to be as close as
possible.
The minimum and maximum frame size can change while
using the software caused by changing the user settings
(or changing the screen resolution).
Thus my paint method checks whether the resolution
has changed, whether the frame size has changed,
or whether the user settings have changed, since
the last call of paint. If so the gui is newly
calculated which leads to a frame size that needs
to be set. How can I set it? I belief that I can't
calculate the needed size outside the paint method,
since I need a graphic context to do so?
Thanks a lot for any further help.
regards
Stephan
.
- Follow-Ups:
- Re: JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- References:
- JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- From: Andrew Thompson
- JFrame resizing
- Prev by Date: Re: JFrame resizing
- Next by Date: Hiding a JTexfield from the GUI
- Previous by thread: Re: JFrame resizing
- Next by thread: Re: JFrame resizing
- Index(es):
Relevant Pages
|