Java Swing save and load workspace/settings

In this case, the obvious solution, java.util.prefs.Preferences, is probably the correct one. RCPrefs from this game is a simple example that demonstrates saving a variety of data types, including enum. The exact implementation is highly dependent on the application. While tedious, it needn’t be especially complex. For expedience, the example uses static methods; frame and table preferences are probably worth a class each.

Leave a Comment