Welcome to Healthcaremagic.
The swelling you have could be due to bleeding that occurred due to injury
o the soft tissue
in the interphalangeal joints.
A single xray would not be sufficient to rule out any fractures
, I would suggest you to go for a high resolution x ray
which would even show minor hairline cracks which can present with recurrent pains or swelling.
Wish you good health.