Chaos in Court Over 'NYPD Blue' Star

2/18/2010 4:00 PM PST

Chaos in Court Over 'NYPD Blue' Star

"NYPD Blue" star Gail O'Grady won a permanent restraining order against a man she claims stalked her and her five-year-old son, but not before the man went ballistic inside the courtroom.

Steven Church was in court this morning for the hearing, when things weren't going his way. O'Grady wasn't present, but her P.I., Scott Ross -- who tailed Church during the investigation -- was too much for Church to take. He stormed out of the courtroom, then stormed back in.

Church apparently made all the wrong moves because Judge Carol Boas Goodson granted the stay away order.

During the hearing Church admitted sending more than 400 text messages to O'Grady.