The Superior Court judge, testifying in the same courthouse where he serves, told jurors the teacher had confided in him about Ronald Johnson, the school board member on trial for extortion.