Simple Text Editor, implemented in Java