Change JTextArea into JTextPane for highlight. Open .java file will highlighted.
Rename txtarea to textpane