public void paintText(SynthContext ss,Graphics g,String text,int x,int y,int mnemonicIndex){
  if (text != null) {
    JComponent c=ss.getComponent();
    FontMetrics fm=SwingUtilities2.getFontMetrics(c,g);
    y+=fm.getAscent();
    SwingUtilities2.drawStringUnderlineCharAt(c,g,text,mnemonicIndex,x,y);
  }
}

public void paintText ( SynthContext ss , Graphics g , String text , int x , int y , int mnemonicIndex ) { if ( text != null ) { JComponent c = ss . getComponent ( ) ; FontMetrics fm = SwingUtilities2 . getFontMetrics ( c , g ) ; y += fm . getAscent ( ) ; SwingUtilities2 . drawStringUnderlineCharAt ( c , g , text , mnemonicIndex , x , y ) ; } }
paints text at the specified location . this will not attempt to render the text as html nor will it offset by the insets of the component .
