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 158967 - binding issues with design time on custom beans
Summary: binding issues with design time on custom beans
Status: RESOLVED DUPLICATE of bug 158968
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
Depends on:
Reported: 2009-02-23 10:19 UTC by paulc86
Modified: 2009-02-23 10:29 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description paulc86 2009-02-23 10:19:08 UTC
when trying to use custom beans (in my case panels). with the GUI builder netbeans has problems instantiating complex
beans. most problems can be overcome by using the java.beans.Beans.isDesignTime() method. 

however I personally found that I could not overcome a call to "bindingGroup.bind();" within the initComponents() method
created by the GUI builder to get around this I had to patch the org.jdesktop.beansbinding.BindingGroup.bind() method as
I obviously could not edit the code within the initComponents() method.

Once patched the jar needs to be rebuilt and then placed in the ext folder of netbeans replacing the current library,
for good measure a restart of netbeans. This then allowed me to use my custom panels as components, dragging and
dropping them onto my forms.

My new version of the bind() method looks like..
    public void bind() {

        if (!java.beans.Beans.isDesignTime()) {

            List<Binding> toBind = new ArrayList<Binding>(unbound);

            for (Binding binding : toBind) {





what I suggest is that netbeans should surrond the call to bindingGroup.bind(); with..
if( !java.beans.Beans.isDesignTime() ){

or the fix in the bind() method of beans binding should be packaged with netbeans default beansbinding jar.

This has additionally been reported to the beans binding project.


Comment 1 Jiri Prox 2009-02-23 10:29:19 UTC

*** This issue has been marked as a duplicate of 158968 ***