I have a Java Swing application that contains a bunch of frames, which in turn basically contains tables showing large amounts of data. Since it is always difficult to start all windows and tables at startup, I would like to implement the โworkspaceโ functionality so that the user can save the preference setting and at startup choose to automatically load the saved workspace into all windows and tables displayed as previously saved. In particular, the settings that I want to save in the workspace:
- Active windows (JFrame) and their sizes and positions on the screen
- Table settings, including selected columns, column order, column width, sorting, filtering
Does anyone know of a smart and easy way to accomplish this without the obvious and something like a very complex and cumbersome solution to iterate over all open windows and save each piece of information using the Preferences api? Thanks
java swing settings preferences workspace
hgus1294 Feb 28 '12 at 10:23 2012-02-28 10:23
source share