The state's Commission on Judicial Conduct says a town court judge in Western New York resigned while he was under investigation by the disciplinary commission.