public void storeTableAsCSV(File target, JTable src) {
        String csvData = /*topText + */"\n\n";
        
        for(int i = 0; i < src.getModel().getRowCount(); i++) {
            for(int x = 0; x < src.getModel().getColumnCount(); x++) {
                int col = src.convertColumnIndexToView(x);
                String curVal = (String)src.getModel().getValueAt(i,col);
                
                if(curVal == null) {
                    curVal = "";
                }
                
                csvData = csvData + removeAnyCommas(curVal) + ",";
                
                if(isDefault) {
                    if(x == src.getModel().getColumnCount() - 8) {
                        csvData = csvData + "\n";
                        continue;
                    }                   
                } else {
                    if(x == src.getModel().getColumnCount() - 1) {
                        csvData = csvData + "\n";                       
                    }
                }
            }
        }
        
        try {
            FileWriter writer = new FileWriter(target);
                writer.write(csvData);
                writer.flush();
                writer.close();
                
            writer = null;
            csvData = null;
        } catch(IOException ioe) {
            JOptionPane.showMessageDialog(source, "Error Writing File.\nFile may be in use by another application."
            + "\nCheck and try re-exporting", "Export Error", JOptionPane.ERROR_MESSAGE);
        }
    }