Once upon a time I did that for castor,
according that you manage to find where
the class is generated it is relatively straightforward
to generate the model as suggested by brian,
then you should probably define some entries to
use proper rendering or hide some fields (by subclassing
or with a specific constructo ....)

editing may be a bit more difficult but doable too !

jc

Tammo, you probably need to create an XmlObjectTableModelAdapter that is something that takes your specific type of XMLObject (I assume you have a type your interested in) and then adapts it to the TableModel interface that JTable accepts.

Once you have that in place, you should be good to go.

HTH,

Brian



Tammo Mueller wrote:

Hi!
I'm currently trying to find a generic way to transform a Document into a JTable. Are there already approaches and which is the best way? I'm trying to avoid going over the DOM, because I loose all Datatypes by doing that. I would like to present a XMLBeans Document to the TableModel and it should set values and names of the elements in the table. It should be somekind of a propertysheet as I know it from 'normal' beans. Best regards, Tammo




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Jean-Christophe Pazzaglia, PhD <[EMAIL PROTECTED]>
Corporate communications
Tel: (+33) 4-93-00-26-78 PGP Key available : 
http://www.eurecom.fr/~pazzagli/publickey.pgp
--
Institut Eur�com - Office 029
http://www.eurecom.fr/
2229 Route des Cr�tes BP 193 06904 Sophia Antipolis, France
Fax: (+33) 4-93-00-26-27

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to