Andre, Campbell has given you a link to the JDBC tutorial, which is an excellent learning resource with lots of code samples. A sample code of using a
ResultSet is actually just three clicks from there, though I don't think jumping right on it is the best way to learn.
Furthermore,
you should separate the two issues, that is reading data from the database, and populating the combobox. They are really different problems. In good code, JDBC and Swing never go together. If you are new to Swing as well, the best anyone can do for you is to give you link to the
Swing tutorial.
Please read these tutorials and if you don't understand something, feel free to come back here and ask specific questions (if it's going to be about Swing, please ask in the
Swing forum).
We very much want you to learn. The tutorials are excellent resources, created by Sun and now maintained by Oracle. These tutorials are much better way of learning than staring at random snippets of code, since they include the
why, not only the
how.