a guest Feb 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import javax.swing.filechooser.FileSystemView;
  2. public class Test extends JFrame {
  3.     public Test() {
  4.        Preferences user = Preferences.userRoot();
  5.        user.put("key", "value"));
  6.        System.out.println(user.get("key", "default value"));
  7.        // "default value" выведет если ключ "key" не найден.
  8.     }
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand