Bronx Family Court Judge Marian R. Shelton, after vigorously contesting charges of misconduct, cut a deal Thursday with the New York Commission on Judicial Conduct under which she admitted a single violation of the Code of Judicial Conduct.

In a stipulation approved by the commission Thursday, Shelton acknowledged that she had violated the code’s injunction that judges be “patient, dignified and courteous” when she ordered the wife of a court clerk in her Bronx courtroom handcuffed and jailed over a weekend.