Rather than creating a visual editor from scratch, as I have been doing for my JavaBeans
, it is also possible to reuse the Matisse GUI Builder. Of course, that results in a set of limitations, such as the fact that the output can only be Java (together with the form XML file that Matisse requires). However, if you accept those limitations, then going this route is possible.
You can create a module that removes all the existing palette items and then add your own:
In fact, Tim Boudreau recently took this approach at a customer consultancy and has produced this tutorial which describes how to bundle a JavaBean (together with a custom editor) for use by the Matisse GUI Builder:
Integrated Property Editors in NetBeans
And, that's currently the newest NetBeans Platform tutorial!