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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!