public void setFullScreen() {
        
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        device = ge.getDefaultScreenDevice();
        
        myWindow.setVisible(false);
        myWindow.dispose();
        myWindow.setUndecorated(true);
        myWindow.setIgnoreRepaint(true);
        myWindow.setResizable(false);
        
        device.setFullScreenWindow(myWindow);
        
        if(displayMode != null && device.isDisplayChangeSupported()) {
            try {
                device.setDisplayMode(displayMode);
            } catch (IllegalArgumentException e) {
                System.out.println("Illegal mode for this device " + e);
            }
        }
        
        myWindow.setVisible(true);
        
        setBufferStrategy();
        
    }