> Hi
> I am trying to maximize a JFrame, but it does not work.
...
> this.setExtendedState(Frame.MAXIMIZED_BOTH);
>
> but this does not seem to work.
Works for me in the nearest frame I have to hand
(the Saverbeans ScreensaverFrame).
> If anyone knows what the problem is, please let me know.
I'd say it is something in the rest of the code (shrugs)..
Andrew T.
hilz - 05 Jul 2006 20:11 GMT
>> Hi
>> I am trying to maximize a JFrame, but it does not work.
[quoted text clipped - 11 lines]
>
> Andrew T.
You're right!
It actually was in the rest of the code!
There was a setVisible() being called after my setExtendedState call,
and i didn't see that one at the beginning.
Once moved setExtendedState to a place after the last setVisible... it
worked like a charm!
thanks for your help.