Replaced JTextArea with JTextPane.