JAVA 弹出的窗口  我怎么把上面的最小化和最大化去掉啊

解决方案 »

  1.   

    使用setUndecorated
    public void setUndecorated(boolean undecorated)
    Disables or enables decorations for this dialog. This method can only be called while the dialog is not displayable. Parameters:
    undecorated - true if no dialog decorations are to be enabled; false if dialog decorations are to be enabled. 
    Throws: 
    IllegalComponentStateException - if the dialog is displayable.
    Since: 
    1.4 
    See Also:
    isUndecorated(), Component.isDisplayable()
      

  2.   

    直接用JDialog作为弹出的窗口。不要用JFrame即可。