text editor using swing