java - Using Preferences API to save path? -


i'm trying use preferences api save path file in regedit. works value of path 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

enter image description here idea ?

doesn't matter.

just in java program. don't have problem.

    preferences node =  preferences.userroot().node("config");     //node.put("logo", "\\iguanasistemas\\iguanafight\\imagens\\logo.png");     string s = node.get("logo", "blah");     system.out.println(s); 

prints correct string.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -