File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes new to JDBC - please help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "new to JDBC - please help!" Watch "new to JDBC - please help!" New topic

new to JDBC - please help!

Jade Davidson
Ranch Hand

Joined: Oct 12, 2001
Posts: 64
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.
I agree. Here's the link:
subject: new to JDBC - please help!
It's not a secret anymore!