setExtendedState
public void setExtendedState(int state)Sets the state of this frame. The state is represented as a bitwise mask.
NORMAL
Indicates that no state bits are set.
ICONIFIED
MAXIMIZED_HORIZ
MAXIMIZED_VERT
MAXIMIZED_BOTH
public void setExtendedState(int state)Sets the state of this frame. The state is represented as a bitwise mask.
NORMAL
Indicates that no state bits are set.
ICONIFIED
MAXIMIZED_HORIZ
MAXIMIZED_VERT
MAXIMIZED_BOTH
再说没这个必要吧。我没见过什么窗口出来就是最大化的,像你那么做成fullscreen的,就可以了。