Knife-trial judge pulls out blade in court