문제

... 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 ;-)

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top