How people treat you is their karma; how you react is yours. Maxim for life: You get treated in life the way you teach people to treat you. If you change the way you look at things, the things you look at change. When you judge another, you do not define them, you define yourself.
Some related images you might like.
Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.