added support for JTextArea