Swolen gum and sharp pain in right temple related?

If you have swollen gums and pain anywhere near the swelling, it is a good idea to go see your dentist immediately. This could be your first sign of either gum infection or abscessed tooth, or bad root. Take no chances and go see a dentist to be on the safe side. Hopefully your dentist will tell you something simple, like you probably just bit down on something hard and your gum will be sensitive for a while. but it's better to find out it is something simple rather than waiting until you get more signs.