TestSwingControlEditor - How does this Editor saves his information?

How does this Editor saves his information?

After I closed the programm, the editor still has the information!

So somewhere the information must be saved.



I have look through the code(other classes as well), but I couldn't find an answer.

I would like to use this method!

i think it saves it to the registry

//i think you initialize it through
GameSettings settings = new PreferencesGameSettings(Preferences.userRoot().node(SysInfo.GameName));
//Do Whatever you need to it and then save it through
settings.save();


I think I loaded it by initializing it with another class, created a class to load a SwingFrame that the player can change settings with and then save when they closed the frame making it inactive

The only thing i'm unable to understand is the most code for .save() is

 /**
     * This method will persist all changed settings.
     * For backing implementations which automatically persist all value
     * changes immediately, this method should re-persist the settings.
     * <P/>
     * A call to save() when the GameSettings holds no settings
     * should persist something showing that no settings are saved for this
     * game.  (As opposed to saving nothing at all, or removing all traces
     * of these GameSettings).
     */
    void save() throws IOException;


is thier more to it??

Thanks for your reply!

Now I know which class I will dissect :evil:



What fun^^