public void actionPerformed(ActionEvent e){
  JTextPane pane;
  DocumentPrinting doc;
  pane=newCodePane();
  pane.setText(m_TextCode.getText());
  doc=new DocumentPrinting();
  doc.print(pane);
}

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