One of the new features of the NetBeans IDE in version 7.1 is the Visual Debugger. The Visual Debugger allows you to easily find the source code for GUI components. Read the tutorial Using the Visual Debugger in NetBeans IDE for more information.