Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to JDBC - please help!

 
Jade Davidson
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing my final project for my Java class. I have to build a GUI application that communicates with a database using SQL. When the program loads, the first table in the database is supposed to display in the first listbox, and its columns are supposed to display in the second. Then I am going to use getSelectedItem to click on the next table and display its columns, but I didn't get that far yet.
My problem is that when I load the program nothing displays in the listbox. I don't understand what is wrong. It is probably something obvious, but I am confused. Am I adding it wrong? If someone could look at my code and give me some idea of what is wrong, I would appreciate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic