static Pair fillTableWithData_makeData(L rows, LS colNames) { ret fillTableWithData_makeData(rows, asStringArray(colNames)); } static Pair fillTableWithData_makeData(L rows, S... colNames) { Object[][] data = new Object[rows.size()][]; int w = 0; for (int i = 0; i < rows.size(); i++) { L l = rows.get(i); Object[] r = new Object[l.size()]; for (int j = 0; j < l.size(); j++) { O o = l.get(j); //print ifdef fillTableWithData_makeData_debug("fillTable " + getClass(o)); if (o cast BufferedImage) o = imageIcon(o); ifclass RGBImage if (o cast RGBImage) o = imageIcon(o); endif /*if (o cast File) o = f2s(o);*/ r[j] = o; } data[i] = r; w = Math.max(w, l.size()); } O[] columnNames = new O[w]; for (int i = 0; i < w; i++) columnNames[i] = i < l(colNames) ? colNames[i] : "?"; ret pair(data, columnNames); }