如题
jtable 绑定的 List对象,表头点击排序后,增加记录后,发现无法定位到刚增加的新纪录上。
this.resultList.add(p);
            if (resultList.size() > 0) {
                int row = resultList.size() - 1;
                row = tablePlan.convertRowIndexToModel(row);
                tablePlan.setRowSelectionInterval(row, row);
                tablePlan.scrollRectToVisible(tablePlan.getCellRect(row, 0, true));
            }