int cspan = ( horizontalScroller.isVisible() )? ((ScrollBarCG) horizontalScroller.getCG()).SCROLLBAR_STEPS + 2 : 1 ; int rspan = ( verticalScroller.isVisible() )? ((ScrollBarCG) verticalScroller.getCG()).SCROLLBAR_STEPS + 2 : 1 ;
    protected void writePrefix(Device d, SScrollPane scrollPane)        throws IOException    {        SScrollBar horizontalScroller = scrollPane.getHorizontalScrollBar();        SScrollBar verticalScroller = scrollPane.getVerticalScrollBar();        SBorder border = scrollPane.getBorder();    	int cspan = ( horizontalScroller.isVisible() )? ((ScrollBarCG) horizontalScroller.getCG()).SCROLLBAR_STEPS + 2 : 1 ;    	int rspan = ( verticalScroller.isVisible() )? ((ScrollBarCG) verticalScroller.getCG()).SCROLLBAR_STEPS + 2 : 1 ;        		d.append("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"");        if ( border != null )         {			d.append("style=\"");            border.writeSpanAttributes( d );            d.append("\"");         }        d.append("><tr><td ");        if ( cspan > 1 )         {        	d.append( "colspan=\"" );        	d.append( cspan );            d.append( "\"" );		 }		if ( rspan > 1 )         {        	d.append( " rowspan=\"" );        	d.append( rspan );            d.append( "\"" );		 }		d.append(">");    }