question: public void actionPerformed ( ActionEvent e ) { JTextPane pane ; DocumentPrinting doc ; pane = newCodePane ( ) ; pane . setText ( m_TextCode . getText ( ) ) ; doc = new DocumentPrinting ( ) ; doc . print ( pane ) ; }
target:  Fired when action got executed.