A while ago, I made a contribution on the wiki regarding the use of Netbeans with OpenFOAM®. It's a little bit out of date, but the last time I checked, the script on the wiki was still valid. Take a look at the article here:
Configure NetBeans with OpenFOAM® Netbeans has been falling behind a little recently in terms of build quality, and I use Eclipse more often these days; but in terms of user-friendliness and customizability, I'd rate Netbeans a good deal higher. I'd be glad to answer questions if anyone has installation issues.