Hi,

For my applications it is useful to have the column names be a part of the export to text files.

Now I didn't do anything about importing so the discussion will need to included making greater changes than this example patch.

Anyone else need this?
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: 
/home/roger/NetBeansProjects/hdf-java/ncsa/hdf/view
# This patch can be applied using context Tools: Patch action on respective 
folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: DefaultTableView.java
--- DefaultTableView.java Base (BASE)
+++ DefaultTableView.java Locally Modified (Based On LOCAL)
@@ -2787,6 +2787,12 @@
         int cols = table.getColumnCount();
         int rows = table.getRowCount();
 
+        out.print(table.getColumnName(0));
+        for (int j = 1; j < cols; j++) {
+            out.print(delimiter);
+            out.print(table.getColumnName(j));
+        }
+        out.println();
         for (int i = 0; i < rows; i++) {
             out.print(table.getValueAt(i, 0));
             for (int j = 1; j < cols; j++) {
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to