登 录
关键代码如下:
public void fullOnScreen() { GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); if (gd == null || gd.isFullScreenSupported() == false) { return;//设备不支持 } gd.setFullScreenWindow(this);//全屏模式 }
抱歉!评论已关闭.