initializefullscreen.java
来自「Java 3D Game SDK.老外做的.」· Java 代码 · 共 29 行
JAVA
29 行
/* * InitializeFullScreen.java */package org.java3dgamesdk.samples.I;import org.java3dgamesdk.core.*;/** * Sample program to initialize the game frame in full screen mode. * To close the applciation, please use the ESC key. * * @author Norbert Nopper */public class InitializeFullScreen { public static void main(String[] argv) { // create the object GameFrame gameFrame = new GameFrame(); // create the full screen with a resolution of 800x600, 16bit color depth and a moderate refresh rate of 75 Hz if(!gameFrame.makeFullScreen(800, 600, 16, 75)) { System.err.println("Full screen or graphic mode not supported."); System.exit(1); } } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?