GUI tool for customizing Java properties files
Are there any? Ideally, I can somehow give the tool a list of property names, as well as the datatype and default value for each property.
+2
tilish
source
to share
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
Michael Aaron Safyan
source
to share