int (TableColumnModel model, int index) { for (int i = 0; i < model.getColumnCount(); i++) if (model.getColumn(i).getModelIndex() == index) return i; LOG.error("Total: " + model.getColumnCount() + " index: " + index); return index; }