JDK的文档里面写的:
DO_NOTHING_ON_CLOSE
Do nothing. This requires the program to handle the operation in the windowClosing method of a registered InternalFrameListener object. 也就是说this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)仅仅是屏蔽了windowClosing事件而已,并没有阻止关闭windows~~~~~~~~
DO_NOTHING_ON_CLOSE
Do nothing. This requires the program to handle the operation in the windowClosing method of a registered InternalFrameListener object. 也就是说this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)仅仅是屏蔽了windowClosing事件而已,并没有阻止关闭windows~~~~~~~~
解决方案 »
- 大家好,求推荐Java零基础入门书籍。
- 使用httpclient发出请求返回提示You don't have permission to access /hits on this server.
- mysql中数据读出来是乱码
- 关于打JAR包时的问题
- java中Keyboard类怎么用??
- pdfbox解析提取pdf文件问题
- 编写了一个线程安全:(的阻塞队列,但却出现了死锁,请高手帮忙看看,小弟多谢了
- 关于connection,statement,resultset接口的实现?
- 怎样在原来图象的基础上进行剪切?
- 关于字符串数组
- 很简单的问题,是不是ACCESS数据库,不支持下列方法?
- jbuilder光标定位问题?
HIDE_ON_CLOSE,而不是DO_NOTHING_ON_CLOSE