📜  设置 jframe 全屏 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:45.234000             🧑  作者: Mango

代码示例2
GraphicsEnvironment graphics = 
        GraphicsEnvironment.getLocalGraphicsEnvironment();
        
GraphicsDevice device = graphics.getDefaultScreenDevice();
JFrame frame = new JFrame("Fullscreen");
device.setFullScreenWindow(frame);