A hydrocele is a type of swelling in the scrotum that occurs when fluid collects in the thin sheath surrounding a testicle. Symptom of a hydrocele is a painless swelling of one or both testicles. Hydrocele can develop as a result of injury or inflammation within the scrotum. Inflammation might be caused by an infection in the testicle or in the small, coiled tube at the back of each testicle (epididymitis). Hydrocele is treated by general surgeons.