首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

java swing,该怎么解决

2012-01-22 
java swingsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)与setDefaultCloseOperation(WindowConstants

java swing
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);与
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
有什么区别?

[解决办法]
没有区别!

setDefaultCloseOperation(int) 它的参数就是一个标志位


JFrame实现了WindowConstants接口。

EXIT_ON_CLOSE常量是在WindowConstants声明定义的。

热点排行