001    package jagafa.view;
002    
003    import java.awt.GraphicsDevice;
004    import java.awt.GraphicsEnvironment;
005    
006    public class Test {
007    
008            /**
009             * @param args
010             */
011            public static void main(String[] args) {
012                    GraphicsEnvironment environment;
013                    environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
014    
015                    GraphicsDevice device = environment.getDefaultScreenDevice();
016    
017                    FullScreenWindow myWindow = new FullScreenWindow();
018    
019                    if (device.isFullScreenSupported()) {
020                            device.setFullScreenWindow(myWindow);
021                    } else {
022                            System.err.println("Fullscreen mode not supported!");
023                    }
024            }
025    }