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 57089 - Model property doesn't indicate user code
Summary: Model property doesn't indicate user code
Status: CLOSED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 08:48 UTC by Milan Kubec
Modified: 2005-07-12 13:41 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 Milan Kubec 2005-03-29 08:48:10 UTC
[dev-200503281924, JDK 1.5.0_02]

I created simple form with one button and one JList. I created class
MyJListModel extending DefaultListModel and set it in post-initialization code
in JList model editor. After closing the editor there is no indication that the
value is already set - the model is in bold font, but value is blank. I think
that there used to be something like <user code>.
Comment 1 Jan Stola 2005-03-30 08:33:33 UTC
Pre/post-initialization code property should be used to modify the source
code before and after the generated code that sets the value of the property.
If you want to modify the code that sets the value of the property,
you should do it through Form Connection mode of the custom property editor
(click on the ... button in the property sheet and select Form Connection
from the Select Mode combobox).
In other words - the displayed value was blank because you didn't change
the value of the (JavaBean) property. <user code> would be displayed
if you entered your code into User Code text area in the Form Connection mode.
Comment 2 Milan Kubec 2005-07-12 13:41:33 UTC
Closing.