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)