default_scroll_mode = enclosingScrollPane.getViewport().getScrollMode();
    protected void setEnclosingScrollPane(JScrollPane scrollPane) {        // if a scrollpane is already installed we remove it.        if (enclosingScrollPane != null) {            enclosingScrollPane.removeComponentListener(this);        }        enclosingScrollPane = scrollPane;        if (enclosingScrollPane != null) {            Uu.p("added root panel as a component listener to the scroll pane");            enclosingScrollPane.addComponentListener(this);        }    }