--- jose silva <
jlmssilva@...> wrote:
> I've found what appear to be a bug in NB 6.0 and 6.0.1 (i've tried it in both). In short
> beansbinding doesn't work in NB Modules. It works perfectly well in standard java applications
> but not inside an NB module. I've tried in NB 6.0 and 6.0.1 and in a fresh installation of NB
> 6.0 in a second computer to eliminate possibility of problems with my computer installation.
>
> The apparent problem can be reproduced like this:
> In an NB module, create a new form by creating new Window component. Create also a simple bean
> with only one field, compile the class and register it as a binding source by drag and drop it
> inside the form. Insert a single text field from the palette, by pressing the right button over
> it select bind->text, chose the bean from the first combo and the field from the second.
>
> So far, so good. Unfortunately an error appears in the form's auto-generated code in the line
> "private org.jdesktop.beansbinding.BindingGroup bindingGroup" and the error is "package
> org.jdesktop.beansbinding does not exist". This line is in the protected area so I can“t
> correct it even if I knew how. If I do ctrl-space in front of org.jdesktop. the only member
> that appear is "layout" not the ones that should appear "beansbinding","swingbinding","el" or
> "observablecollections".
>
> Is this a known issue? Does anybody knows how to correct it?
>
I use beans binding in modules all the time. You have to take the beans binding library, copy it
some where under your main project directory so you'll have it later, and make a library wrapper
for it. Then any modules needing it needs to depend on this module. Once the modules depend on it
the errors will go away. Any library you run into with Matisse which needs a library or JAR etc
you'll have to do this.
Wade
==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.comhttp://wiki.netbeans.org/wiki/view/NetBeansDreamTeamhttp://www.netbeans.org