Code example for Preferences

Methods: getBoolean

0
        propSupport.firePropertyChange("adbExecutable", oldExe, value);
    } 
 
    public boolean isAskBeforeQuit() { 
        try { 
            return applicationPreferences.getBoolean("askBeforeQuit", true);
        } catch (Exception e) { return false; }
    } 
 
    public void setAskBeforeQuit(boolean value) {
        set("askBeforeQuit", value);
    } 
 
    public int nextInt() { 
        return next.getAndIncrement();
    } 
     
    private static final String[] IMG_FMTS = {"PNG", "JPG"};
    public String[] getImageFormats() {
        return IMG_FMTS;
    }