Code example for Preferences

Methods: get

0
    public String[] getImageFormats() {
        return IMG_FMTS;
    } 
     
    public String   getImageFormat() {
        return applicationPreferences.get("imageFormat", "PNG");
    } 
 
    public void setImageFormat(String value) {
        set("imageFormat", value);
    } 
 
     
    public File getImageDirectory() {
        String dir = applicationPreferences.get("imageDirectory", null);
        if (dir != null) return new File(dir);
        return new File(".");
    } 
 
    public void setImageDirectory(File value) {
Contextual code suggestions in your IDE  Get Codota for Java