An attorney who served as a judge in Western New York who pleaded guilty to stalking his ex-girlfriend in violation of an order of protection resigned from the bench while under investigation by the New York State Commission on Judicial Conduct.