GUI tool for customizing Java properties files
1 answer
Instead of using XML list files and properties, you can use the Preferences class . If you look at the Java Project Template , it includes the ability to do what you want (using the Preferences class):
- The "--prefset name = value" option sets the "name" preference key to "value".
- The "--prefget name" parameter causes the value of the name "name" to be printed.
- The "--prefdel name" parameter causes the "name" key to be removed.
- The "-preflist" option prints all settings for the application.
+1
source to share