if (timer == null) { JScrollPane scrollPane = getScrollPane(); if (scrollPane == null) updateSize(); else {    scrollBar = scrollPane.getVerticalScrollBar(); if (scrollBar == null || !scrollBar.getValueIsAdjusting()) {  scrollBar = scrollPane.getHorizontalScrollBar(); if (scrollBar != null && scrollBar.getValueIsAdjusting()) startTimer(); else updateSize(); } else { startTimer(); } } }
    public void componentMoved(ComponentEvent e)    throws NotImplementedException    {      // TODO: What should be done here, if anything?    }