protected void setRootPane(RootPane rootPane) throws SlickException {
        if (!guiInitialized) {
            guiInitialized = true;
            initGUI();
        }
        if (gui != null) {
            gui.setRootPane(rootPane);
        }
    }