Following the Battle of Okinawa and the end of World War II in 1945, Okinawa was under United States Administration for 27 years. Not exactly colonization, but occupancy. USA made them reconstruct their "constitution". Maybe the failure of Mongolian colonization (Kublai Khan) influenced their culture?
But no, Japan was never colonized like India.