@ Override public void println ( String str ) { super . println ( str ) ; if ( Administrator . WATCH_AREA != null ) { String buf = m_out . toString ( ) ; m_out . reset ( ) ; Administrator . WATCH_AREA . append ( buf ) ; } }
Every time this is called the buffer is cleared an output is sent to the JTextArea .