if (newFilename!=null) { filename = newFilename; FileIO.fsaListToFile(side.getList(), filename); setTitle(verString+" - "+filename); }
FileIO.fsaListToFile(side.getList(), filename); setTitle(verString+" - "+filename);
    public boolean checkSave(boolean justSave) {        int res;        String newFilename;        if (justSave) {            res = JOptionPane.YES_OPTION;        } else {            res = JOptionPane.showConfirmDialog(this,                    java.util.ResourceBundle.getBundle("global").getString("discardWarn"),                    java.util.ResourceBundle.getBundle("global").getString("Hint"), JOptionPane.YES_NO_CANCEL_OPTION);        }                switch(res) {            case JOptionPane.YES_OPTION:                // speichern (als), dann $aktion                newFilename = FileIO.getSaveFilename(this, filename);                                if (newFilename!=null) {                    filename = newFilename;                    FileIO.fsaListToFile(side.getList(), filename);                    setTitle(verString+" - "+filename);                }                return true;            case JOptionPane.NO_OPTION:                // nicht speichern, dann $aktion                return true;        }        return false; // implizit der cancel fall    }