Tom Sawyer saw him murder Dr. Robinson in the cemetery & testified against him in court
They 
hide in a clump of ... Injun Joe tells the drunk Potter that Potter murdered Dr. 
Robinson in a drunken fury, and Potter, still dazed, believes him.