Configuration file in the form of GUI



Currently I am reading the lines from my config file using Properties for a Java application, but do not think it is the most refined way to manage the application's configuration. What I would like to do, instead, have a nice GUI format configuration file.


When the GUI file is opened, it has blanks (or they are filled with last-saved values), and possibly drop-down menus to select from. I understand that the GUI feature can be supported with Java, but here are my two concerns:



  1. Writing another program just to manage the configuration is not appealing.

  2. If it were not to be a separate program, it should be included in the main program I am writing, but I do not want the users to be prompted to the configuration page unless they explicitly want to make modifications. Ideally, they want them to open, modify and save the configuration files themselves, not from the program.


XML could work, but since I am using Properties and reading from text files and XML is just plain text when opened for editing, I do not really see a huge advantage (it would be, however, awesome when a GUI window can be presented to the users to modify the content of the XML files if they are opened).


Any suggestions would be appreciated.


No comments:

Post a Comment