David Costelloe wrote:

Hi,
Wondering if there are any good samples of loading data from derby into a Jtable with column names as headers?

Thanks

I have not seen specific examples using Derby. But I would guess the jfc examples (TableExamples) under the demo directory of the jdk should be good pointer. There is one generic example using a JDBC adapter (implements the TableModel interface) to
populate a  JTable and  uses ResultSetMetaData to get the column names.

The first search result  in Google gave me the following link:
http://chronos.cs.msu.su/JDK/jfc/TableExample/src/

Info about  Derby  jdbc drivers and  urls,  to access a Derby database,
can be found in the tools and utility guide:

http://db.apache.org/derby/docs/10.1/tools/

Hope it helps.

-Rajesh



Reply via email to