The deal was finalized late Friday, after the first round of the NHL draft.
The 32-year-old Campbell had 19 goals and 38 assists over three seasons with the Blackhawks. He was the third-highest paid player on the team last season at $7,142,000. The 25-year-old Olesz was the seventh overall pick by the Panthers in the 2004 draft. He had six goals and 11 assists in 44 games last season.