else { Segment s = getText(getStartOffset(), getEndOffset()); glyphPainter = new J2DGlyphPainter(s.toString(), getFont(), new FontRenderContext(null, false, false)); } } }
  protected void checkPainter()  {    if (glyphPainter == null)      glyphPainter = new DefaultGlyphPainter();  }