jdk1.4可以用getExtendedState()方法来判断。getExtendedState
public int getExtendedState()
Gets 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
Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT. Returns:
a bitwise mask of frame state constants
Since:
1.4
See Also:
setExtendedState(int)
public int getExtendedState()
Gets 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
Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT. Returns:
a bitwise mask of frame state constants
Since:
1.4
See Also:
setExtendedState(int)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货