• Post Reply Bookmark Topic Watch Topic
  • New Topic

TableModel-unable to locate error

 
Chak Terlapu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using TableModel to connect to a database and display the results. I am unable to display the table. It doesn't display anything. Below is the code from the TableModel I am using to connect to database. Could anyone help me find the errors please. any help would be ggreatly appreciated.
Thanks
 
Renee Zhang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Move con.close(); outside while loop at first. You can't close the connection before you get all the data.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!