text editor on Swing with some basic features