Re: JFrame Resize Issues




<casey.lutz@xxxxxxxxx> wrote in message
news:1120076622.953591.31300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> My java application currently checks frame resizing and if necessary
> resizes the frame in order to keep an aspect ratio. Testing this on
> Windows with undecorated frames works perfectly, as the user can resize
> the frame to their heart's content, and then once they release the
> mouse the frame will resize to an aspect ratio. However, when I set
> the JFrames to "Decorated" the user has to battle their resizing with
> the automatic aspect ratio resizer.
>
> My application needs to be able to run in all sorts of window managers
> and behave the same way, so I'm wondering if I'm missing something in
> how to control the resizing behavior.
>
> My code for checking resize is simply:
>
> public void componentResized( ComponentEvent evt ) {
> resizeVideo();
> }
>
> Any help you could give would be greatly appreciated, Thanks.

layoutManager = null;


.


Quantcast