Question

... and how did it happen (guessing allowed, of course :-)

@Override
public int convertChildIndexToModel(int modelIndex) {
    return getRowSorter() != null ? getRowSorter()
            .convertRowIndexToView(modelIndex) : modelIndex;
}

@Override
public int convertChildIndexToView(int viewIndex) {
    return getRowSorter() != null ? getRowSorter()
            .convertRowIndexToModel(viewIndex) : viewIndex;
}

and yeah, the idiot was me ;-)

Était-ce utile?

La solution

calling convertRowIndexToView with modelIndex and vice-versa. Must be some copy-paste bug :)

Autres conseils

Is it because you should be calling convertRowIndexToModel in convertChildIndexToModel and vice versa?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top