关于 JFrame 去除边框,全屏展示等配置

居中显示:setLocationRelativeTo(null); // 程序居中展示

全屏显示:getGraphicsConfiguration().getDevice().setFullScreenWindow(this); // 全屏展示

去除边框:setUndecorated(true); // 设置无边框,需要在 pack() 方法前调用

posted @ 2022-11-03 09:19  嘿丶给你一块饼干  阅读(245)  评论(0)    收藏  举报