Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes Dynamic JTable Headers? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

Dynamic JTable Headers?

Gary Frick
Greenhorn

Joined: Sep 13, 2002
Posts: 28
I'm trying to build a dynamic JTable to display the results of a SQL/JDBC Query. After I do the query I get the column names returned. But how do I create the table header dynamically using the resulting column names?
Thanks,
Gary
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Please do not cross post. Respond to this post in Swing.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
 
subject: Dynamic JTable Headers?