• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL query data -> JTable within JFrame

 
Jason Lichti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm very new to Java. Actually I just started 3 days ago. My only other programming experience is with excel vba. I'm trying to write a small program but don't know where to start. I want to run an sql query, create a JTable (within a large JFrame) that's sized correctly to represent the data found, and then put the results into that table. Would it be best to import the SQL query data into an array and then into the table?? What I have achieved so far is a small gui which has a few buttons that run queries and post the data into a textarea, but not a table. Is there any good documentation for working with JTables? What would you guys recommend I read? I know some of this is vague, so sorry about that. I can go more into detail if necessary!!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Is there any good documentation for working with JTables?

bookmark this page

http://docs.oracle.com/javase/tutorial/uiswing/TOC.html

scroll down the page a bit to "how to use tables'
 
Jason Lichti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched for something like that. Thank you for the link sir! I'll see what I can do with it!
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to the Ranch!
 
Jason Lichti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ranganathan.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic