Honestly, the Hamas are relatively a bunch of kids put next to Israel. Israel has the guns, the organization, decades of Western support, et cetera. Hamas are just one of a few groups that are pissed off, stuck in a rut, and feel obligated to right the wrongs done to them and their country. It probably isn't hard to be antisemitic when you grow up in Palestine, under the big thumb of a nation that was (in your nation's eyes) wrongfully given its land in the first place.
I've seen some footage of what the Israeli army did to a town when they thought the Hamas held one of their soldiers prisoner (turned out to have died in combat), and it isn't pretty. It wasn't a case of "they bombed a school because Hamas was hiding weapons underneath it" because a large part of the town was bombed flat. Most of the Gaza strip doesn't have working electricity or proper water. They get their supplies from Egypt through tunnels. There are basically tunnels everywhere through the Israel area connecting Palestine parts, because there are Israeli walls and fences everywhere separating them. I know several people who visited Israel and/or Palestine, and from what I hear, it's really not easy for Palestinians to grow up and stay positive about a peaceful resolution, especially in the Gaza strip. And that's not even considering the immense pressure from freedom radicals or fanatical imams and their followers.
But both sides are under a constant burden of cultivated fear and hate, constantly being fed by the media and crazy religious people, so I don't see them properly working together sometime soon.
A big thing to consider in the whole situation is that generally on the Israeli side it's rich, well-educated politicians making decisions, whereas on the Hamas side it's poor, hate-fueled radicals making the decisions. Hamas aren't actually the Gaza government. They're a militant organization, based in Gaza. There is an actual State of Palestine, that Gaza falls under. James makes pretty valid points, but I don't think Israel will want to cooperate with what they consider a terrorist organization, (that has quite a list of antisemitic lines in their rule book) and I don't think this same organization would like to patrol borders that violate their people's human rights.
Of course, the whole situation would change much for the better if the whole Israel area would just disappear, and take Iraq and Syria along with it. ******* hell, that Islamic State situation is flying out of control fast.