I've used the preferences API myself for this exact situation. It just works which is nice for once.
Swing Tips 3 - Storing window states This tip is less specific to Swing than it is a quick intro to the preferences api. This api has been around since 1.4, but hasn't seen all that much usage. I'm going to show a quick mechanism for having your windows remember their size, location and state.