text editor in java source code