The late Larry Hagman was best known for his role on "Dallas" -- and for wearing TV's most legendary cowboy hat -- but Hagman was all over the small screen long before the world wondered, "Who shot J.R.?"

Hagman, who died Friday after suffering from cancer, was in the middle of shooting the second season of the "Dallas" reboot on TNT when he passed away.

His cancer almost set back the 2012 incarnation, but Hagman said he wouldn't let that happen. Before its premiere, Hagman told The Huffington Post he was thrilled to be back as the ruthless J.R. Ewing. "Playing a villain is like a license to steal."

In honor of Hagman and his 55-year TV career, take a look through the slideshow below to see him as the master on "I Dream Of Jeannie," to watch him play Jessica Walter's (a.k.a. Lucille Bluth) on-air husband and to find out which "Real Housewife" once played his stepdaughter.

Loading Slideshow...
  • "Decoy" (1954)

    In his first TV appearance ever, Hagman guest starred on "Decoy," the first American police series with a female protagonist.

  • "Diagnosis: Unknown" (1960)

    Hagman appeared on the series premiere of "Diagnosis: Unkwown," which lasted only nine episodes. But it did leave a legacy: Thirty-three years after its cancellation on CBS, the network launched the successful "Diagnosis Murder," starring Dick and Barry Van Dyke, which went on for eight seasons.

  • "Sea Hunt" (1958-1959)

    Hagman popped up in three episodes of "Sea Hunt" as three different characters from 1958-1959.

  • "I Dream Of Jeannie" (1965-1970)

    Hagman's first major breakout role was as Astronaut Tony Nelson on "I Dream Of Jeannie." In the series debut, Tony opened Jeannie's bottle, becoming her master. By the end of the series, Tony and Jeannie married and in a TV special that took place 15 years after "I Dream Of Jeannie" ended, it was revealed that they had a son named T.J.

  • "Three's A Crowd" (1969)

    In this 1969 ABC made-for-TV movie, Hagman starred as a pilot whose wife Jessica (played by "Arrested Development" star Jessica Walter) disappeared and was presumed dead. When she appears seven years later, Hagman's character Jim has met and married Ann (E.J. Peaker). He doesn't tell them about one another and, of course, hilarity ensues.

  • "Here We Go Again" (1973)

    This TV comedy, which lasted one season, portrayed two couples in their post-divorce lives. Hagman played Richard, who remarried Susan (Diane Baker), and lives near both his ex-wife and her ex-husband. "Real Housewives of Beverly Hills" star <a href="http://www.ebay.ca/itm/HERE-WE-GO-AGAIN-Press-Photo-LARRY-HAGMAN-Kim-Richards-DIANE-BAKER-Nita-Talbot-/370620610414#shId">Kim Richards played Hagman's character's adorable stepdaughter Jan</a>.

  • "Dallas" (1978-1991)

    Hagman played greedy, scheming oil baron J.R. Ewing, donning the most legendary cowboy hat in TV history for a whopping 14 seasons. The series' 1980 "Who shot J.R.?" storyline has gone down as the biggest cliffhanger in TV history ... but there was more J.R. to come.

  • "Knots Landing" (1980-1982)

    The CBS series that spun off of the legendary "Dallas" followed Gary, the middle son and black sheep of the Dallas-based Ewing family. Hagman played his villainous older brother J.R. on-and-off on the short-lived series.

  • "Nip/Tuck" (2006)

    Hagman returned to TV with a four-episode stint in the fourth season of "Nip/Tuck." He played Burt Landau, a wealthy medical venture capitalist who bought the plastic surgery firm McNamara/Troy. Burt may have been even more twisted than J.R., as this sex scene with his much younger wife and Christian Troy, would indicate.

  • "Desperate Housewives" (2011)

    In the seventh season of "Desperate Housewives," Hagman popped up as Lynette's mom Stella Wingfield's curmudgeonly, but loaded fourth husband.

  • "Dallas" (2012)

    Fourteen seasons of "Dallas" wasn't enough. In 2012, the show successfully returned on TNT and Hagman was back as J.R., the ruthless former president of Ewing Oil. Though when the show made its debut, J.R. was in a nursing home, being treated for clinical depression, he returned to Southfork, hungry for power as Season 1 went on. The season ended with J.R. and his son John Ross gaining control of Southfork and joining forces against Bobby. <a href="http://www.hollywoodreporter.com/news/larry-hagman-death-dallas-prepping-393767">Season 2 of "Dallas" is currently in production and the show's writers are reportedly working on giving J.R. -- and Hagman -- a proper send-off</a>, according to The Hollywood Reporter.

CORRECTION: This post has been revised to accurately state that "Knots Landing" was a spinoff of "Dallas."

Earlier on HuffPost: