Read "Core Java - Volumn II - Horstmann and Cornell"; it have a good JDBC + 
JTable starter
guide at chapter 6 Advanced Swing (at least in my printed copy - may vary 
according with
release).

It's includes a sample to do what you want.

Richter



> 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