 Governor Stan Stephens appointed Gray as an Associate Justice of the Montana Supreme Court in 1991, following the resignation of Diane Barz.Barz had been the first woman to serve on the court; Gray then became the second.Gray won election as an Associate Justice in 1992 and again in 1998.