Reusing the Matisse GUI Builder

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!


Cool. Now the only thing I need is a way that I can override the default generation of Java code, so that it will generate my language or store everything in a database.

Posted by Kovica on October 13, 2009 at 04:29 PM PDT #

Perhaps Eclipse folks can benefit from this, since they still don't have UI builder.

Posted by Postmortem on October 14, 2009 at 12:08 AM PDT #

Well, maybe matisse itself shold be modified (separated into parts) to not generate java by itself, and another module generate the java code, so if someone need a editor, matisse will be certainly be the right (and easy) choice!

Posted by Flavio on October 14, 2009 at 02:48 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« May 2016