public static JFrame createFrame(String title, Container content)
    {
        JFrame frame = new JFrame(title);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        if (content != null)
        {
            frame.setContentPane(content);
        }
        frame.setUndecorated(true);
        frame.setResizable(false);
        Listener.init(frame);
        
        environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
        device = environment.getDefaultScreenDevice();
        
        setDisplayMode();
        
        device.setFullScreenWindow(frame);
        frame.createBufferStrategy(2);
        
        return frame;
    }