java界面的最小化,最大化和关闭怎么屏蔽?让其失去作用.

解决方案 »

  1.   

    JFrame.setUndecorate
    好像是这个。
      

  2.   

    setUndecorated  不对吧
    public void setUndecorated(boolean undecorated)禁用或启用此 frame 的装饰。只有在 frame 不可显示时才调用此方法。
      

  3.   

    setResizable(false);只是不让用户调整窗口大小而已,
    我现在想要把界面里的最小化\最大化\关闭都消失(vb中可以),不知道用什么方法?
      

  4.   

    windowDeiconified(WindowEvent e) 
    void windowIconified(WindowEvent e) 
    不知道重写这两个方法行不?
      

  5.   

    要不用一个JDialog,这样就没有最小化和最大化两个按钮了,然后重写关闭事件,这样就行了。
      

  6.   

    JInternalFrame
    public JInternalFrame(String title,
                          boolean resizable,
                          boolean closable,
                          boolean maximizable)Creates a non-iconifiable JInternalFrame with the specified title, resizability, closability, and maximizability. Parameters:
    title - the String to display in the title bar
    resizable - if true, the internal frame can be resized
    closable - if true, the internal frame can be closed
    maximizable - if true, the internal frame can be maximized
    这个应该能满足你的需要