SurfMan was 100% correct. The question included "using netbeans". So any notepad++ solution is of course wrong :)

And to provide something useful I have to tell you: The one and only IDE for java...