I'm really sorry to hear that... sad
I'm not saying this is true all the time, because I prefer hanging out with guys more than girls, and I get judged a lot too, but it IS hard for guys and girls to just be friends, despite what a lot of people say. It's possible, yes, but it's not very common. I learned that the hard way... All of my closest friendships I've had were eventually ruined because sex/gender differences got in the way.
But it is pretty ridiculous to dump someone like that... if your boyfriend didn't like it, he should've talked to you maturely and openly about it. Sounds like he has trust issues. I think you're better off... I mean, if you can look back on your behavior and honestly think you didn't go too far..