you mean when minimizing the window, the window will automatically return to the previous status?Then you can write some codes to maintain the original status, to make it look well, you can also add some control method like a timer or some other actions.
java.awt.Frame
public void setExtendedState(int state)可选参数(位掩码模式)Frame下定义的
NORMAL (通常)
ICONIFIED (你说的最小化)
MAXIMIZED_HORIZ (水平最大化)
MAXIMIZED_VERT (垂直最大化)
MAXIMIZED_BOTH (最大化)