Maximing Window
Is there a way to get a Frame to be the same sizeas the screen it's on when it is first shown?
Dimension screenSize =Toolkit.getDefaultToolkit().getScreenSize();setSize(screenSize.width, screenSize.height);Windows will not consider the frame maximized, but it will be the size of the screen.
With JDK 1.4 beta you can maximize a frame:
myFrame.setExtendedState(Frame.MAXIMIZED_BOTH);
but due to a bug (#4464714 in bug parade) you must set the frame maximized after having set it visible, otherwise it is shown in its normal state.
I think that in JDK 1.4 final the bug will be solved.