An Albany County Court judge resigned and agreed not to seek judicial office in the future after the New York State Commission on Judicial Conduct informed him that it was investigating a complaint against him, the commission announced Friday.