Geertjan's Blog

  • October 13, 2009

Reusing the Matisse GUI Builder

Geertjan Wielenga
Product Manager
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!

Join the discussion

Comments ( 3 )
  • Kovica Tuesday, October 13, 2009

    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.

  • Postmortem Wednesday, October 14, 2009

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

  • Flavio Wednesday, October 14, 2009

    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!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.