NEWPORT BEACH, CALIF. -- William J. Cagney, 82, a brother of the late actor James Cagney and the producer of such films as "The Time of Your Life" and "Kiss Tomorrow Goodbye," died Jan. 3 at a hospital here after a heart attack.

Mr. Cagney was born on New York City's East Side. He was an actor, talent agent and associate producer at Warner Bros. before starting Cagney Productions in 1942.

At Cagney Productions he produced such films as "Johnny Come Lately" in 1943, "Blood on the Sun" in 1944, "The Time of Your Life" in 1948, "Kiss Tomorrow Goodbye" in 1950 and "A Lion Is in the Streets" in 1953.

Mr. Cagney also managed his brother's career, negotiating his contracts with movie mogul Jack Warner, who once agreed to the brothers' demand for a "happiness clause." This stated that the actor would not work unless he was happy.

William Cagney retired from the film business in 1965. He spent his later years as a real estate investor.

His acting career included about 10 films in the 1930s. As an associate producer, his work included "Yankee Doodle Dandy," the 1942 film that earned James Cagney an Academy Award, and "Captains of the Clouds."

The other two Cagney brothers, Harry and Edward, were physicians. Harry practiced medicine until his death and Edward retired from the profession to go into business with William and James at Cagney Productions. Their sister, Jeanne, was an actress on Broadway, radio and in films, including "Yankee Doodle Dandy." She died in 1984. James died in 1986.

William Cagney's marriages to showgirl Boots Mallory and to socialite Nadine Barker ended in divorce.

His survivors include two children by his first marriage, Jill Simpson of Huntington Beach, Calif., and Stephen Cagney of Los Angeles; one son by his second marriage, William Cagney Jr. of Los Angeles, and four grandchildren.