According to your description, the swollen and painful eyes have been present for two days. Are they also accompanied by photophobia, blurred vision and tearing? If so, consider eye strain or blepharitis. If you have blepharitis, you may feel nodules on your eyelids that are painful to touch. Avoid rubbing your eyes with unclean hands and use antibiotic eye ointment.