An upstate New York judge has resigned from the bench shortly after he pleaded guilty to felony drug-dealing charges, the state's judicial misconduct watchdog said Monday.