How to hide the default minimize/maximize and close buttons on JFrame window in Java?

后端 未结 5 659
青春惊慌失措
青春惊慌失措 2021-01-02 22:35

I would like to know if it is possible to create a JFrame window which has no default maximize/minimize(-) and close(x) buttons! I have added custom buttons on

5条回答
  •  庸人自扰
    2021-01-02 22:59

    JFrame.setDefaultCloseOperation(frame.DO_NOTHING_ON_CLOSE);
    

    Will make the 'X' button no functioning. It's works for me.

提交回复
热议问题