views:

66

answers:

0

Hello,

I'm searching for he source of a graphical bean editor... a (very basic) beanbox if you prefer...

Here is what I would like to achieve : I have an application which uses some customizable objects that more or less honor the java bean spec... What I mean by that is that they have getters and setters for most properties...

The swing/awt GUI in my application provides a set of classes, panels, etc to graphically edit those properties, but I do not use the reflection API... They provide for cutomization of some of these properties but most things are hardcoded and I modify the editor everytime I add a new customizable stuff... I hate this design...

While I could of course use a better design pattern (and I eventually will), I have been wondering if I could turn my 'customizable' objects into more elaborate beans like those that would be loaded in beanbox for exemple. They could provide editors for their properties, etc...

There are A LOT of tutorials to teach you how to create a bean and load and test it in beanbox. However, I haven't been able to find some source code that actually does what beanbox do : get an bean instance and EDIT it !!!

Which approach do you gurus think is the best : change the design and do-it-myself or keep searching for a swing/AWT based bean editor source code ??

thanx for your comments !