JFK and Dillon were both WWII Naval Officers. Dillon was his closest advisor during the Cuban Missile Crisis as well.
War, and the threat of annihilation tends to trump politics.