This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I created a simple new project using Java Desktop Application template (swing application framework app). The *View window was generated incorrectly. I am getting "cannot find symbol" error messages when compiling. The problem is that 'statusMessageLabel', 'statisAnimationLabel', and 'progressBar' are generated as 'local' variables in the 'initComponents()' method. I have my GUI Builder option set to "Generate Components as: Local Variables in initComponents() Method". Still, the template code generation should realize that variables that the template is using outside initComponents() should be generated as fields and once that are not used should be generated local. A workaround is to use design view and then for each ('statusMessageLabel', 'statisAnimationLabel', and 'progressBar') select 'Customomize Code' and select 'Variable' property as 'field' and check on 'private' flag.
Reproducible. You are right, we should add flags into the Java Desktop Application templates that force generation of class fields for components used outside initComponents() method.
Fixed. Modified files: http://hg.netbeans.org/cdev/rev/5080bbba7977