Code example for Preferences

Methods: getInt

0
        prefs.putInt("bThreshold", bThreshold);
    } 
 
    @Override 
    public void loadFromStudioConfig(Preferences prefs) {
        rThreshold = prefs.getInt("rThreshold", rThreshold);
        gThreshold = prefs.getInt("gThreshold", gThreshold);
        bThreshold = prefs.getInt("bThreshold", bThreshold);
    } 
 
    public void setBackgroundImage(BufferedImage img) {
        background = img;
    } 
} 
Experience pair programming with AI  Get Codota for Java