question: public void addComment ( String comment ) { if ( frame != null ) { chatTab . addComment ( comment ) ; } if ( tabbedPane . getSelectedIndex ( ) == 2 ) { editorTab . displayComment ( comment ) ; } }
target:  Adds a comment to the chat window