writing an object of JFrame to disc
i want to make a program that works like notepad to save text files on the disc and the same program should read it.
the method that comes to my mind is that we should write the object of the program that represents a text file and when we click the file the program recovers the data stored.
the object should be opened when clicked by the user.
i want to know that is my approach is correct or not.
if yes then how can i do so and if not then please correct my approach to do the task.
here i need a little more assistance
i know that to searialize i have to implement java.io.Serializable
but can you assist me more by telling the further step. what to do after searializing my JFrame object to write it on the disc and give it an icon which is visible to user and when user clicks it the object runs and displays a JFrame just like .txt files open when double clicked.