private void print(String text,AttributeSet printStyle){
  try {
    doc.insertString(doc.getLength(),text,printStyle);
  }
 catch (  BadLocationException e) {
    LOGGER.warning("Bad location");
  }
}

private void print ( String text , AttributeSet printStyle ) { try { doc . insertString ( doc . getLength ( ) , text , printStyle ) ; } catch ( BadLocationException e ) { LOGGER . warning ( "Bad location" ) ; } }
print the given text with the given style . used to be able to output links .
