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?
[116 byte] By [monteglenn] at [2007-9-26 2:49:01]
# 1
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.
kathymc at 2007-6-29 10:34:41 > top of Java-index,Desktop,Core GUI APIs...
# 2

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.

fabiocar at 2007-6-29 10:34:41 > top of Java-index,Desktop,Core GUI APIs...