CFGs are not simple. Where are you stuck? Do you have the proper understanding needed to start such a project?
Netbeans is an IDE, a tool to help you write and debug your code, nothing more. It wouldn't matter if you used textpad or vim; it will not "do it for you".
If you are stuck with the theory of CFGs, then try this as a starting point:
If you have a programming question, post that with the code where you're stuck and we'll help out.
Stacks and lists are Datastructures that you would use, but certainly not the start and end of it all with regards to CFGs