private boolean isDisplayModeAvailable( 
            int screenWidth, int screenHeight, int screenColorDepth ) {
        DisplayMode[] displayModes = this.graphicsDevice.getDisplayModes();
        
        for( DisplayMode mode : displayModes ) {
            if( screenWidth == mode.getWidth() && screenHeight == mode.getHeight()
            && screenColorDepth == mode.getBitDepth() )
                return true;
        }
        
        return false;
    }