mode = Display.getDisplayMode();
    public void reinit(int width, int height) {        if (width <= 0 || height <= 0) {            LoggingSystem.getLogger().log(Level.WARNING,                    "Invalid width " + "and/or height values.");            throw new JmeException("Invalid width and/or height values.");        }        this.width = width;        this.height = height;        if (camera != null)            camera.resize(width, height);        mode = Display.getDisplayMode();        capabilities = GLContext.getCapabilities();    }