In the early days, there's also some weird sexual undercurrent to the dynamic of JR and Pam's relationship, I think. Certainly throughout the mini-series there's some kind of frisson (and at the beginning of Season One there's a less subtle nod to this when he admires her "boo-eys"). It's a while since I've watched, but isn't there a one-to-one between them in an early-ish episode where he says something about her being attractive and she gives him a derisive look up and down and tells him how disgusting she finds him?
If she weren't a Barnes - and his brother's wife - she's exactly the kind of woman he'd enjoy the challenge of pursuing. And yet she's not only off limits, she finds him repellent. Not because he's a Ewing, but because of who he is. He can't charm her and he can't intimidate her. I think he finds that confusing.
Perhaps he envies Bobby for having something he doesn't. Not just Pam herself, but - in those early days - a marriage that's happy and demonstrative.