Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Updating Netbeans ComboBox with SQL query

843854Mar 15 2005 — edited Mar 15 2005
I'm using netbeans to create my gui and want a combo box to hold the values returned from a select statement to my database.

However the panel holding the combo box is already drawn before the values can be added. This is because the username and password required to connect to the database are entered into the gui so a query cannot be made before the combo box is drawn.

When I try to use combobox.addItem(String) on making the connection and getting the results nothing is given in the combo box.

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2005
Added on Mar 15 2005
1 comment
271 views