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