If it just happened though, give it some time. You could just be getting a cold. I know the glands on my groin swell up before I get a cold and they get really sore! But there's nothing you can do unfortunately /:
I'd go in to get it looked at if its been a while! Swollen glands are usually a sign of an infection... Even if it's just a small cold!