Appearing before a judge with a bad attitude will most certainly not produce the results you expected. As incredulous as it may seem, there are those who actually have appeared in court with an attitude and expected the matter to be resolved in their favor.
Once I remember a young man grumbling out loud that he needed to go. He was in a hurry. So the judge called his case, relieved him of his driving privileges and sent him on his way. Another time a woman slammed the door on her way out and was quickly escorted back into the courtroom. She stayed the night a guest of the county jail.