a simple text editor using java swing