Java Swing save and load workspace/settings

前端 未结 1 1075
醉话见心
醉话见心 2020-11-28 16:39

I have a Java Swing application that contains a bunch of frames which in turn predominantly contains tables that display large amounts of data. Since it is always a hassle a

相关标签:
1条回答
  • 2020-11-28 17:00

    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.

    0 讨论(0)
提交回复
热议问题