Courtroom antics lead judge, public defender to fight