Antonio, You are a god among men! Thank you so much. I knew that I was forgetting something simple, and that was the MANIFEST entry.
Like you, it had been ages since I had done this and could not remember what all needed to be done to make it work. You are awesome! Sincerely, Sean Carrick Owner - PekinSOFT Systems s...@pekinsoft.com On Fri, Jul 5, 2024 at 1:05 AM Antonio <anto...@vieiro.net.invalid> wrote: > Hi Sean, > > It's ages since I last did this, so I may be wrong/outdated. > > As far as I recall you do need to have a BeanInfo for your Bean. This > describes the properties of the Bean, including any PropertyEditor(s) > you may need for specific Bean properties. You can right-click in your > Java file and select "BeanInfo Editor..." from the popup. This will show > a wizard for generating the BeanInfo if you haven't one. > > Then you need to make sure that your Bean is properly registered in the > META-INF's manifest. This should be an entry "Java-Bean: the.class.path" > (IIRC). This is probably automatically generated with the @JavaBean > annotation, but I can't remember right now. Double-check this. > > Then you have to add the JAR file with your Bean to NetBeans. You can do > this with "Tools" / "Palette" / "Swing/AWT Components" and then "Add > from JAR..." button. This will make NetBeans know about your bean. Of > course all classes in your Bean must be available in the jar. If you > have dependencies make sure these are included in the JAR. > > And then you should be all set. Everything should work nicely. Of > course, the projects that use your bean should include the JAR too in > their runtime classpath (as a dependency). > > You can also make your JAR available as a Library ("Tools" / "Palette" / > "Swing/AWT Components" / "Add from Library". Use this if your projects > can benefit of a Library (you can register your bean .JAR using the > Tools/Libraries menu entry). > > Finally you can also do all this using a NetBeans module, this would be > some sort of NetBeans customization for you. See [1] for details. [1] is > also a nice read for understanding how things work, and, BTW, needs a > revision, so feel free to update [1] as appropriate. > > Hope this helps, > Antonio > > > > [1] > > https://netbeans.apache.org/tutorial/main/tutorials/nbm-propertyeditors-integration/ > > On 4/7/24 17:01, Sean Carrick wrote: > > Hey all! > > > > I have created a class that is a visual component that I would like to > > be able to visually edit in Matisse. I have annotated the class as > > @JavaBean, and included the @BeanProperty annotation on the property > > getter methods. However, when I try to create a new instance in Matisse, > > it consistently gives me the error message, "Cannot determine form type > > (com.pekinsoft.api.View). Please make sure the class is a JavaBeans > > component. The form cannot be opened." > > > > When this first appeared, I tried creating a BeanInfo class for it, > > compiled both of them, and still get the same error message. > > > > What is the trick to being able to visually edit custom visual > > components as forms in Matisse. I know that I must be missing > something... > > > > Thanks in advance for your help. > > > > Sincerely, > > > > Sean Carrick > > Owner - PekinSOFT Systems > > s...@pekinsoft.com <mailto:s...@pekinsoft.com> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >