this is the program written in Java that results an editor looks like Notepad