Im trying to use either combo boxes or lists menus (in Swing) to allow me to select a specific column values from a table using JDBC and Access in order for me to add a record to the database. I would greatly appreciate any help on this matter, as im going insane because of this.
The most simplest way is to fill a Vector with your list from the database and pass that vector into the Constructor of your JComboBox. What exactly are you having a problem with? The SWING part of this or the JDBC part of this? [ February 23, 2004: Message edited by: Gregg Bolinger ]
That is in no way complete. But that is the gist of it. Again, what part is confusing you? JDBC or SWING? That way at least we can focus more on the exact issue you are having rather than "how do I do it".
Joined: Feb 23, 2004
Its the JDBC thats confusing me, im not the worlds expert on it, as you can tell. In the resultSet.getString, do you state the column names or what?