Preferences prefs = TiledConfiguration.node("dialog/main"); int extendedState = editor.getAppFrame().getExtendedState(); prefs.putInt("state", extendedState);
editor.shutdown();
    protected void doPerformAction() {        // Save the extended window state if the window isn't minimized        Preferences prefs = TiledConfiguration.node("dialog/main");        int extendedState = editor.getAppFrame().getExtendedState();        prefs.putInt("state", extendedState);        System.exit(0);    }