java - I want to make my GUI screen window size, not full screen -
i'm watching tutorial on making gui , they're using graphicsdevice , graphicsenvironment it. they're making full screen application, want make windowed application.
how go doing this?
my code here
public void setfullscreen(displaymode dm, jframe window){ window.setundecorated(true); window.setresizable(false); vc.setfullscreenwindow(window); if(dm != null && vc.isdisplaychangesupported()){ try{ vc.setdisplaymode(dm); }catch(exception ex){ } } } public window getfullscreenwindow(){ return vc.getfullscreenwindow(); } public void restorescreen(){ window w = vc.getfullscreenwindow(); if(w != null){ w.dispose(); } vc.setfullscreenwindow(null); }
Comments
Post a Comment