I want a “welcome” dialogue box to appear — but only the first time the application is opened. Do I need some sort of text file in my JAR which “remembers” if the dialogue has already appeared? Is there a more elegant way of doing it than this?
Share
The Preferences API is how I did something like this. It will store a value in the Registry (Windows) or user’s home folder or UNIX, so it works on everything.
http://docs.oracle.com/javase/7/docs/api/java/util/prefs/Preferences.html