After he was asked if he was pleased with his attorney, the former wide receiver once known as "Chad Ochocinco" gave his lawyer, Adam Swickle, a gentle pat on the rear.
McHugh was furious when people in the audience laughed.
"There's nothing funny about what's going on here today," she told Johnson.
Johnson, 35, replied that he wasn't laughing.
Then McHugh said, "I don't think anything's funny about it, Mr. Johnson. This isn't a joke."
Johnson said he didn't do it as a joke.
Swickle agreed, saying: "I don't think it was done as any disrespect to the court. I don't think he meant to get a reaction from the court room, judge."
The judge told Johnson she wouldn't accept a plea deal that involved only community service and more anger management counseling. Instead, she sentenced him to 30 days in jail and tacked three months onto his one-year probation, which would have ended in September.