I would ask you how to log information to JTextArea from different places(from exception and for successfully run program) using log4j in java.swing package.
Example: I have app which it have 3 checkboxes and when i check one of them and click on "run button" it must log information(print a message like if exception occurs or if is it successfully runs the program) to the JTextArea.