String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text);
g.setColor(selectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0);
  public int drawSelectedText(Graphics g, int x, int y, int p0, int p1)    throws BadLocationException  {    String text = getDocument().getText(p0, p1);    g.setColor(Color.WHITE);    g.drawString(text, x, y);    return metrics.stringWidth(text);  }