How to disable (or hide) the close (x) button on a JFrame?

前端 未结 6 930
别跟我提以往
别跟我提以往 2020-12-09 08:47

I have a window (derived from JFrame) and I want to disable the close button during certain operations which are not interruptible. I know I can make the button not do anyt

6条回答
  •  一生所求
    2020-12-09 09:25

    For those coming to this later than 2008, there has been a change making it possible to do this. See this link

    Second response from the bottom shows how to do it by name.

提交回复
热议问题