Text Editor in Java with syntax highlighting