Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Dynamic JTable Headers?

 
Gary Frick
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross post. Respond to this post in Swing.
 
    Bookmark Topic Watch Topic
  • New Topic