protected int drawUnselectedText(Graphics g,int x,int y,int p0,int p1) throws BadLocationException {
  g.setColor(unselected);
  Document doc=getDocument();
  Segment s=SegmentCache.getSharedSegment();
  doc.getText(p0,p1 - p0,s);
  int ret=Utilities.drawTabbedText(this,s,x,y,g,this,p0);
  SegmentCache.releaseSharedSegment(s);
  return ret;
}

protected int drawUnselectedText ( Graphics g , int x , int y , int p0 , int p1 ) throws BadLocationException { g . setColor ( unselected ) ; Document doc = getDocument ( ) ; Segment s = SegmentCache . getSharedSegment ( ) ; doc . getText ( p0 , p1 - p0 , s ) ; int ret = Utilities . drawTabbedText ( this , s , x , y , g , this , p0 ) ; SegmentCache . releaseSharedSegment ( s ) ; return ret ; }
renders the given range in the model as normal unselected text . uses the foreground or disabled color to render the text .
