First of all, how could Apostle Paul delight in troubles? Most people are depressed, worried and anxious, when they get in serious suffering. But not Paul, He had something from heaven, given him from God, which enabled him to delight in difficulties. The power and the grace from God for Paul was sufficient to make him delight in pain, suffering and all sort of problems.
It is similar to the ‘delight’ in suffering, which the Apostles experienced, when they were flogged because of preaching about Jesus. The came out after being flogged, rejoicing. How could they? The grace and power of God. Acts-5:40, 41.