Hebrews 12:2 looking unto Jesus the author and perfecter of our faith, who for the joy that was set before him endured the cross, despising shame, and hath sat down at the right hand of the throne of God.

Jesus knew He was going to be beat, whipped, separated from the Father, and die and yet, He still maintained His joy. What gave Jesus joy was knowledge and faith. Jesus knew and believed His sacrifice would save mankind whom He dearly loves. Jesus also knew and believed His sacrifice would honor the Father, therefore, rewarding Him with the name higher than any other name, a seat at the right hand of the Father, and The only Way to God. For these reasons, Jesus maintained His joy and endured the cross. 

If Jesus can have joy in that situation, we too can have joy. If we follow the same pattern of Jesus, in any situation, we can maintain our joy. When facing negative situations that impact our joy, we must know and believe there’s a promise of victory over that situation. After a breakup, we must know and believe the blood of Jesus can remove the hurt from our consciousness and God has a spouse available for us (Hebrews 9:14; Mark 11:24). After a layoff, our joy is held together by believing God will supply all our needs and we will receive our desired career (Philippians 4:19; Mark 11:24).  

Whatever the situation is, maintain joy by knowing and believing in the promises of God coming to pass in your life.