if ( renderHeight != contentHeight ) {
Component parent = getParent().getParent();
contentHeight = renderHeight;
if ( parent instanceof ScrollPane ) {
setSize( getParent().getSize().width - 12, contentHeight );
parent.doLayout();
}
else
repaint();
}
}