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.

解决方案 »

  1.   

    试过了,还有toFront()都不起作用。
      

  2.   

    请使用如下函数:since 1.4之前是public void setState(int state)
    java.awt.Frame
    public void setExtendedState(int state)可选参数(位掩码模式)Frame下定义的
    NORMAL (通常)
    ICONIFIED (你说的最小化)
    MAXIMIZED_HORIZ (水平最大化) 
    MAXIMIZED_VERT (垂直最大化)
    MAXIMIZED_BOTH (最大化)