This will set it so that you can display the Java log in a JTextArea. It will also automatically update.