You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dave Briccetti <da...@davebsoft.com> on 2004/12/08 05:39:39 UTC

Mapping from JavaBeans to Swing components

Is there anything in Commons or elsewhere that, given:

1) a JavaBean, and
2) either a java.awt.Container holding Swing components or an object 
with a set of fields that are Swing components

will fetch all the bean properties that match the set of Swing 
components (by name), and set the Swing components from them, or the 
reverse? I'd like to to require no declaration of properties to be 
mapped. It should use reflection or something like that.

Something that handles JTextComponent and maybe JCheckBox and a few 
others would be nice. Integration with XmlBeans would be good (call 
isSetXXX() first to see if there is data).

Thanks.

Dave Briccetti
Lafayette, California


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org