Hard to say! Go get some Ocean spray cranberry juice and drink that. Does it decrease testicle pain or frequency? It did for me; worked for 2 years! Anytime I ran out of this my urination frequency would increase, burning urination would come back, and severe pain in scrotum, feeling like burning and/or aching (which required paracetamol + codeine to help!). D mannose is also another option. These will only tell you if you have some sort of infection and the pain is being referred into the areas you mention.
Aside from that; Do the standard protocols! and the sooner the better you do, the better your chances are. Though please, next time when you are taking an antibiotic take a good probiotic and also consider taking NOW Foods Beta glucan. Powerful immune system enhancer and will work together with your antibiotic.
Learn about stretching and relaxation in the very large prostatitis thread you see on this forum. Lots of good information in there that would apply to you.
Bactrim is a decent antibiotic. Try stay away from cipro, levaquin and other quinolones!