Notepad application in Java