Basic Notepad made using java swing and applet