This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||Support JavaBean -> Matisse UI|
|Product:||guibuilder||Reporter:||_ tboudreau <tboudreau>|
|Issue Type:||ENHANCEMENT||Exception Reporter:|
Description _ tboudreau 2006-01-02 22:36:47 UTC
This is probably more of a request for a new module, but... The POJO model is very popular with web applications; and very often when you create a UI, it will actually be setting values on some JavaBean. What might be very nice is a tool that will take an existing Java class, find all the properties on it, and generate a skeleton UI with appropriate components and labels based on property names, etc. from a JavaBean. It doesn't have to actually try to design the layout in any way, just generate appropriate components. Given the (un)popularity of BeanInfos, etc., probably the PropertyPanel-style approach is not the right one - better to make some inferences (integers get a JSpinner, enums get a JComboBox, possibly do something cute with constants and combo boxes if you can infer that that's all a property will take) and let the user handle layout, validation, etc. - just generate methods that do all that that the user can edit.