I'm trying use Preferences API to save a path to file in regedit. It is works but the value of path is not saved correctly.
I'm trying this.
public class ImageLogoPreference { private final String path = "configs"; private Preferences node; public ImageLogoPreference(){ node = Preferences.userRoot().node(path); } public void setImageLogo(){ node.put("logo", "\\IguanaSistemas\\IguanaFight\\imagens\\logo.png"); } public String getImageLogo(){ String logo = node.get("logo", "image"); return logo; } } At register save this: ///Iguana/Sistemas///Iguana/Fight//imagens//logo.png
Any idea ?
Propertieswhen they are saved.