摘要: System.exit(0)是退出整个程序,如果有多个窗口,全部都销毁退出。frame.setDefaultCloseOperation()是设置用户在此窗体上发起"close"时默认执行的操作。必须指定以下选项之一: (1)DO_NOTHING_ON_CLOSE(在WindowConstants中 阅读全文
posted @ 2016-11-20 14:19 大王叫我来加班 阅读(3861) 评论(0) 推荐(0) 编辑
摘要: JFrame设置背景色代码: 阅读全文
posted @ 2016-11-20 13:21 大王叫我来加班 阅读(2623) 评论(0) 推荐(0) 编辑