switched to JTextPane instead of TextArea.