Reputation: 2757
I have a combo box. The values are populating in combo box from DB. But I want to display empty.
Only when I selecting, it should be displayed in the drop down.
Example:
Select Item:
""
Book
Library
Notebook
Computer
Here Book, Library will come from database. But I need to display first time empty string. I have tried:
combo.setSelectedItem("");
But it's always displaying "Book" only.
How would I do this?
Upvotes: 0
Views: 3700