M
Mike
I am writing a Java application that uses about 1000 parameters in
various calculations. All these parameters are displayed to the user in
a JTable, and any can be modified. I would like to persist the user
changes to these parameters, on the local machine. I'm new to Java, and
am considering what the best options are for data persistence. It seems
to me that, in this case, there are too many values to consider saving
them using java.util.prefs.Preferences, and distributing a database
with the app is probably overkill.
I have previously written something similar using Microsoft VB.NET,
where I created an XML file with some initial data, and distributed it
with the application. The XML file was read into a DataSet, which was
bound to DataGrid. If the user changed any values in the grid, the
underlying DataSet was updated, and the XML file re-written to disk. Is
it possible to do something similar in Java? I have looked at the
Connection and ResultSet interfaces, but it does not appear that they
can be used to read and write XML files.
Mike.
various calculations. All these parameters are displayed to the user in
a JTable, and any can be modified. I would like to persist the user
changes to these parameters, on the local machine. I'm new to Java, and
am considering what the best options are for data persistence. It seems
to me that, in this case, there are too many values to consider saving
them using java.util.prefs.Preferences, and distributing a database
with the app is probably overkill.
I have previously written something similar using Microsoft VB.NET,
where I created an XML file with some initial data, and distributed it
with the application. The XML file was read into a DataSet, which was
bound to DataGrid. If the user changed any values in the grid, the
underlying DataSet was updated, and the XML file re-written to disk. Is
it possible to do something similar in Java? I have looked at the
Connection and ResultSet interfaces, but it does not appear that they
can be used to read and write XML files.
Mike.