Judges have the authority and discretion to maintain order in their courtrooms through various measures, including sanctions, exclusion, and even jail time. Misconduct in the courtroom, such as disruptive behavior, outbursts, or refusal to comply with court orders, can result in consequences ranging from warnings to imprisonment. This power extends to parties involved in the case, lawyers, witnesses, and spectators alike. The California Rule of Court 1.150 specifically addresses the issue of photographing, recording, and broadcasting in court, emphasizing the need to balance public interest with the fairness and dignity of the proceedings.