Title / Description
Code import java.awt.DisplayMode; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; public class FenBianLv { public void setResolution(){ GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device=environment.getDefaultScreenDevice(); DisplayMode displayMode=new DisplayMode(1024,768,16,75);/*分辨率1024*768 16ä½å— 节 刷新频率75 */ device.setDisplayMode(displayMode); } public static void main(String args[]) { FenBianLv fbl = new FenBianLv(); fbl.setResolution(); } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code