My Prof assigned this project... A frame, text area in the center, panel in the south containing a text field. Any text file opened would show its contents in the text area and the path and filename in the text field.
I did it, but I can't figure out how to make it remember which file was last opened. Say, you run the program, open a text file, save and close the file, then close the program. If you run the program again, it will open the last file accessed automatically. I thought about assigning the path to a string variable, but won't all variables be cleared when you close the program?