jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//关闭JFrame时运行System.exit(0)
jFrame.setLocationRelativeTo(null);//屏幕中央显示
jFrame.setVisible(true);//可见
JFrame常用几个函数
最新推荐文章于 2020-03-14 16:35:41 发布
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//关闭JFrame时运行System.exit(0)
jFrame.setLocationRelativeTo(null);//屏幕中央显示
jFrame.setVisible(true);//可见