This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB and JTable tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB and JTable tutorial" Watch "JAXB and JTable tutorial" New topic
Author

JAXB and JTable tutorial

aswin pal
Greenhorn

Joined: Jan 23, 2010
Posts: 9
Google search did not work, at least for me.

Is there any example that shows how to feed an editable JTable with classes created using JAXB for my schema.

I know TableModel has to be the bridge but I am badly in search of a working example :-(
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Your post contains a link to the API documentation for JTable (and so does this reply now). That documentation contains a link to Sun's tutorial about JTable. Follow that link and read the tutorial. Experiment with JTable and its related classes.

Once you have done that you should realize that the fact that your objects happen to be created via JAXB is irrelevant as far as the JTable is concerned.

Or have you already done that, and you have a specific problem which only arises with objects created via JAXB? If so, it would help if you told us what it was.
 
Consider Paul's rocket mass heater.
 
subject: JAXB and JTable tutorial