public int drawSelectedText(Graphics g, int x, int y, int p0, int p1)
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)
  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);  }