Code example for Preferences

Methods: put

0
    } 
 
    protected void storeLastVisitedDirectory(File fileFromChooser) {
        String parent = fileFromChooser.getParent();
        if (parent != null) {
            prefs.put(getPrefKey(), parent);
        } 
    } 
 
    protected abstract String getPrefKey();
}