Too bad you could not bring that judge up on charges of judicial misconduct - if he indeed told you that the charge against you had no merit, but decided to punish you anyway because he did not approve of your demeanor.
... or otherwise, that people in your community could not apply any counter-pressure to such judicial behavior, in the media and public fora.