Simple text editor desktop app in Java