void goToAnchor(String anchorName){
  Label anchorCmp=(Label)anchors.get(anchorName);
  if (anchorCmp != null) {
    int cx=anchorCmp.getX();
    int cy=anchorCmp.getY();
    int h=getHeight();
    if (anchorCmp.getAbsoluteY() - getY() + h > getPreferredH()) {
      h=getPreferredH() - (anchorCmp.getAbsoluteY() - getY());
    }
    scrollRectToVisible(cx,cy,getWidth(),h,anchorCmp);
  }
}

void goToAnchor ( String anchorName ) { Label anchorCmp = ( Label ) anchors . get ( anchorName ) ; if ( anchorCmp != null ) { int cx = anchorCmp . getX ( ) ; int cy = anchorCmp . getY ( ) ; int h = getHeight ( ) ; if ( anchorCmp . getAbsoluteY ( ) - getY ( ) + h > getPreferredH ( ) ) { h = getPreferredH ( ) - ( anchorCmp . getAbsoluteY ( ) - getY ( ) ) ; } scrollRectToVisible ( cx , cy , getWidth ( ) , h , anchorCmp ) ; } }
jumps to the given anchor
