Re: JFrame resizing



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
.



Relevant Pages

  • Re: Re-Layout
    ... Is there room for it to resize? ... you still see the frame with the "details..." ... I can only see it when manually resizing the frame by resizing ... content form vanishes but the area below the ...
    (comp.windows.x)
  • Re: Re-sizable table with left-justified columns
    ... Steve C wrote: ... You can use gridColumnconfigure -weight=>0 to prevent the left ... column from resizing when the Frame size is changed. ...
    (comp.lang.perl.tk)
  • Re: Change buttons to a limited frame movement
    ... resizing the frame then resizes the image and text size. ...
    (comp.lang.java.help)
  • Re: Asteroids game
    ... (less than a Ghz), try downloading the Asteroids.jar file and ... resizing the frame to see if that makes it any better. ...
    (comp.lang.java.programmer)
  • Re: DFT and resonance -- question
    ... In other words, if you want a frequency resolution, df, of 0.1 Hz, ... The OP clearly says he will use the DFT, ... the information within a frame is "complete" and thus throws away ...
    (comp.dsp)