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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -