Hi Guys, I am creating a system to work on a database adding updating etc. And the combo boxes are giving me trouble.

The process is as follows. The user searches for a business by location once entered all business for that area are then displayed name address owner etc. The User is offered the options update delete etc

I was wondering is there a way to display the combo box with the alredy selected choice from the database leaving the other options there so it can be updated if nessecary.

i have tried using setSelectedItem() and setSelectedIndex() and no joy.

Any suggestions welcome


setSelectedItem or Index should work - if they didn't then the problem is probably elsewhere. Without seeing your code it's impossible to tell.