I once was a defendant in a traffic-court trial. While the ticketing police officer was on the stand the judge had me sit behind the bar. I had no lawyer and provided my own defense.
Interesting side note: I succeeded in the trial. A week later I asked a hot-shot lawyer (or so he thought) what the odds are of a person getting off under "such and such" a circumstance. I didn't tell him it was my situation. His response, "never". It was then that I told him about my case and how I won.