void (int row) { myVisibleRow = row; final Rectangle rowBounds = getRowBounds(myVisibleRow); final int indent = rowBounds.x - getVisibleRect().x - getTreeColumnOffsetX(); setPreferredSize(new Dimension(getRowBounds(myVisibleRow).width + indent, getPreferredSize().height)); }