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.

Bug 126791 - Setting static text to the components.
Summary: Setting static text to the components.
Status: RESOLVED DUPLICATE of bug 77712
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-06 06:24 UTC by baskaraninfo
Modified: 2010-06-07 17:03 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description baskaraninfo 2008-02-06 06:24:45 UTC
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.
Comment 1 Marian Petras 2008-04-24 11:45:24 UTC
This seems to be a bug in the form editor module - reassigned to "form" for evaluation.
Comment 2 Tomas Pavek 2010-06-07 17:03:54 UTC
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 ***