If you have a complaint about the conduct of a provincially-appointed judge, you may write to the Ontario Judicial Council.
If you have a complaint about the conduct of a justice of the peace, you may write to the Justices of the Peace Review Council.
If you are unhappy with the decision of a judge or justice of the peace in court, you would need to pursue your legal remedies through the courts.