public static boolean isDisplayChangeSupported()
    {
        if (device == null)
        {
            environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
            device = environment.getDefaultScreenDevice();
        }
        return device.isDisplayChangeSupported();
    }