Java : Save Settings with 2 lines of code @GenuineCoder
Java : Save Settings with 2 lines of code  @GenuineCoder
Uploaded November 2016 | Updated September 2026, 3 weeks ago
This video explains how to make use of the java.util.prefs.Preferences class to store your preference / configuration values persistently.

An instance of the Preferences class can be created using Preferences.userNodeForPackage(Classname.class). Then the variable can be used for storing String, Integer, Float, Boolean, Double and Byte Arrays in a key-value pair mechanism.

The preferences will be saved persistently. In windows, these values will be stored under the registry whereas in Linux it will be stored in .java folder at home.

For later use, Preferences can be exported using exportNode(OutputStram out) method.

- Genuine Coder
genuinecoder.com
Java : Save Settings with 2 lines of codeIkonli : Make your Java Swing app attractive with awesome iconsJavaFx JFoenix Tutorial #16 : Filter data with JFXTreeTableViewJavaFX Animation Tutorial #4: Combining Animations with ParallelTransitionJava Multithreading Tutorial for Beginners #5: Setting Thread Priority to control CPU allocationJava Multithreading Tutorial for Beginners #6: Thread Status and JoinJavaFX 3D Tutorial #14 - Adding more details to Earth (Lighting, Reflection, Bumps)JavaFX Library Software From Scratch #2 : Using DERBY databaseJavaFX Library Software #19 : Connecting Settings UI to FileJavaFX ObservableListJavaFX Library Software #21 : Adding Login Screen (with Username and Password)JavaFx JFoenix Tutorial #11 : JFXListView and JFXPopup
Genuine Coder |

Java : Save Settings with 2 lines of code

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER