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 have designed a form in the project, which has a main class namely, MainClass. Whenever I set a static plain text to any of the components, it is internally stored in the resource map and retrieved properly while we execute the project, as a whole! But, when we run the individual file, the text is not reading from the property file properly. Because, it refers the MainClass.getContext() to retrieve the text from the resource bundle and returns in null! So, when I have set text to a menu and run the file separately. The menu's text property set as NULL and due to this, its not showing the proper static text, which I have set at the design time! But, its properly coming when we test through "Preview Design" option. Hence, I want to run the whole project every time to test the individual file functionality.
This seems to be a bug in the form editor module - reassigned to "form" for evaluation.
I think this is the problem described in issue 77712. Running a single file does not copy non-java files (e.g. properties bundle files) to execution classpath, so the file is missing then. However, after running the whole project once, which copies all files, running one file should work as well. (To "propagate" changes in the properties file the whole project must be run again.) *** This bug has been marked as a duplicate of bug 77712 ***