How to implement autoloading in a Java application
So I am writing this JFrame application that has its own document model that can be loaded and saved to a file path. I am wondering what good ways there are to have the application open the last saved file on startup.
Am I storing the last saved document file path in a proprietary way, or is there some facility in java that can handle this for me?
+2
source to share
1 answer
Why not use the Java Preferences API?
This allows you to save settings / properties per user and / or per system. They will be saved automatically (via files in Unix / Linux and in the Windows registry, IIRC).
+6
source to share