Is there something similar to the Eclipse cleanup rules (Preferences > Java > Code Style > Clean Up) in NetBeans?
The cleanup rules in eclipse will allow you to clea
NetBeans 7.2 has Inspect & Transform refactoring to do this:
http://netbeans.org/kb/docs/java/editor-inspect-transform.html
I know that netbeans points out these things automatically, but beyond merely pointing them out I don't know.
If you just want to make your code have proper indentations on a whole project, simply click the project name, go to "Source," and then click "Format." Hope this helps!