Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JComboBox confusion

  Asked By: Brayden    Date: Nov 08    Category: Java    Views: 467

I'm unclear from the documentation at Sun how do fetch the value
of a JCombo into a variable to use as part of a SQL select statement.

I am loading the box ok, but getting back is an issue.

What do I do to get the value? Some listener(s), but what?

Also, I am loading the box from a vector filled by a result set
from a SQL select. Can I load the box directly from the result set?
Can I return the index of the selected item in the ComboBox?