Here you can find the source of setUserString(final String preferencesGroup, final String preferenceName, final String value)
public static void setUserString(final String preferencesGroup, final String preferenceName, final String value)
//package com.java2s; //License from project: Apache License import java.util.prefs.Preferences; public class Main { public static void setUserString(final String preferencesGroup, final String preferenceName, final String value) { final Preferences preferences = getUserPreferences(preferencesGroup); preferences.put(preferenceName, value); }/* ww w.j a v a 2 s. co m*/ public static Preferences getUserPreferences(final String preferenceGroup) { final Preferences userRoot = Preferences.userRoot(); final Preferences preferences = userRoot.node(preferenceGroup); return preferences; } }