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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -