H
hilz
Hi
I am trying to maximize a JFrame, but it does not work.
Any help is greatly appreciated.
I call this:
Toolkit.getDefaultToolkit().isFrameStateSupported(Frame.MAXIMIZED_BOTH)
and it returns true. So this means it should work.
So now i call this:
this.setExtendedState(Frame.MAXIMIZED_BOTH);
but this does not seem to work. I tried to call it before and after
setVisible(true) and it still won't work.
If anyone knows what the problem is, please let me know.
Thanks.
I am trying to maximize a JFrame, but it does not work.
Any help is greatly appreciated.
I call this:
Toolkit.getDefaultToolkit().isFrameStateSupported(Frame.MAXIMIZED_BOTH)
and it returns true. So this means it should work.
So now i call this:
this.setExtendedState(Frame.MAXIMIZED_BOTH);
but this does not seem to work. I tried to call it before and after
setVisible(true) and it still won't work.
If anyone knows what the problem is, please let me know.
Thanks.