You will need to: model.setParser(parser); this.jTable1.setModel(model); model.setFile(file); jTable1.setDefaultRenderer(Object.class, new ColSpanTableCellRenderer()); AsciiParser.DelimParser p; try { p = parser.setDelimParser(f, AsciiParser.DELIM_COMMA); model.setRecParser(p); }
returns true if the row is believed to be a record. If it is not, then the entire line is returned for each column, and the ColSpanTableCellRenderer should be used.