wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JTable and ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable and ResultSet" Watch "JTable and ResultSet" New topic
Author

JTable and ResultSet

Bryan Lee
Greenhorn

Joined: Feb 13, 2004
Posts: 17
What is the best way to put the resultsets into JTable?
Lee
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Well, you could convert your ResultSet into a RowSet, and create a TableModel around it to wrap it all up. Sounds pretty easy to me.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable and ResultSet