views:

38

answers:

3

If you have a Java desktop application, what is the best way to store window-related settings like window position, window state (maximized, ...), ...

Thanks!

+4  A: 

Have you looked at the Java Preferences API? It's the first thing that comes to mind.

Jon Skeet
+1  A: 

This was one of the problems the Swing Application Framework was going to solve (see the section on session state). However, that project has stopped though there is a fork called Better Swing Application Framework that is still under development.

Mark