有没有办法在Swing应用程序中隐藏关闭按钮?
我知道可以使用JFrame.DO_NOTHING_ON_CLOSE
,但有没有完全消除它的方法?
如果我写setUndecorated(true)
,我会得到
IllegalComponentStateException - the frame is displayable
有没有办法在Swing应用程序中隐藏关闭按钮?
我知道可以使用JFrame.DO_NOTHING_ON_CLOSE
,但有没有完全消除它的方法?
如果我写setUndecorated(true)
,我会得到
IllegalComponentStateException - the frame is displayable