Sunday September 20, 2009
How to Create a GUI Editor on the NetBeans Platform
There's a lot of interest in creating GUI editors via the Visual Library. So I'm creating a small example that will show how to do that. The palette is filled with JavaBeans that are registered in the layer, meaning that the editor is extensible via the System FileSystem. When a palette item is dropped, a BeanNode wraps the JavaBean and displays its BeanInfo in the Property Sheet, where it can be edited and changes are applied immediately.
Other nice features such as scene serialization to/from XML (as shown here), printing, and widget resizing are also supported.
The beans you see above come from here (Nervous Text bean) and here (Ticker bean).
I need to clean it up a bit and then it will be made available via Kenai, together with a tutorial in the usual place.
Sep 20 2009, 05:11:19 AM PDT Permalink
Hi Geertjan,
Can't we reuse the matisse guibuilder module..instead.
Regards,
Pavan
Posted by Pavan Kumar on September 21, 2009 at 07:54 PM PDT #
No, because the Matisse GUI Builder doesn't expose any APIs. You'd need to rip it out of the NetBeans sources and then somehow fit it into your own application. Probably possible, but not much fun and very difficult. (I tried and failed doing that some years ago.)
Posted by Geertjan Wielenga on September 22, 2009 at 01:15 AM PDT #
Too Bad ..that such a wonderful tool canNot be reused
Posted by pavan on September 22, 2009 at 06:09 AM PDT #


