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 253875 - GUI Builder doesn't properly show customized components
Summary: GUI Builder doesn't properly show customized components
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-27 18:47 UTC by mjr_1974
Modified: 2015-09-11 16:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mjr_1974 2015-07-27 18:47:02 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Linux version 4.1.3-040103-generic running on amd64
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02

Netbeans shows components created with custom code with "<User Code>", which defeats the reason to use the GUI Builder.

To reproduce: 
Open the GUI editor and crate a Panel
Add a label to it
Define in source code:
final static String LABEL_TEXT = "This should be the text!";
Set the text to LABEL_TEXT,
The displayed text is "<User Code>"

If "Custom Creation" in selected in "Customize Code.." and a method call is added, the GUI Builder does not even shown "<User Code>".

If many components in the form get their values from, for example, static final variables, the forms are cluttered with  "<User Code>" everywhere, which makes the GUI Builder useless.
Comment 1 Tomas Pavek 2015-09-11 16:45:09 UTC
This is by design. The GUI builder cannot parse/execute the user code.