private int getColumnIndex(TableColumn tableColumn) {
            int index = -1;
            int i = 0;
            for (TableColumn tc : CollectionUtils.iterable(
                    component.getColumnModel().getColumns())) {
                if (tc == tableColumn) {
                    index = i;
                    break;
                }
                i++;
            }
            return index;
        }