The Alt+Shift+F or Source->Format option is one of my favourite functions in the NetBeans IDE, because it immediately makes my tangled spaghetti page of variables and logic look like a beautifully crafted and carefully laid out piece of code.
Prior to NetBeans 7.2 the Format option would only be available if you had focus on a code editor window and thus would be applied to that particular file that you were currently bashing away at. However, NetBeans 7.2 brought with it an awesome little tweak: you can now mass source format multiple files simply by selecting a file group or folder in the Projects node, Source Packages node, or Folders node window.
Having selected your targeted group and then hitting the Source->Format menu option, all files will be formatted using the source format rules currently set up under Options.
Nifty little time saver!
Related Link: http://www.netbeans.org