会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
大王叫我来加班
博客园
首页
新随笔
联系
管理
订阅
2016年11月20日
system.exit( )和frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) 的区别
摘要: System.exit(0)是退出整个程序,如果有多个窗口,全部都销毁退出。frame.setDefaultCloseOperation()是设置用户在此窗体上发起"close"时默认执行的操作。必须指定以下选项之一: (1)DO_NOTHING_ON_CLOSE(在WindowConstants中
阅读全文
posted @ 2016-11-20 14:19 大王叫我来加班
阅读(3861)
评论(0)
推荐(0)
编辑
JFrame设置背景色
摘要: JFrame设置背景色代码:
阅读全文
posted @ 2016-11-20 13:21 大王叫我来加班
阅读(2623)
评论(0)
推荐(0)
编辑
公告