/** Returns the path for passed in row. If row is not visible null is returned. */ public TreePath getPathForRow(int row) { if (row >= 0 && row < getRowCount()) { if (root.getPathForRow(row, getRowCount(), info)) { return info.getPath(); } } return null; }