I have a database table (DEPARTMENT) that contains a list of department in a company, such as Sales, Accounting, Distribution, etc.
I want to put these data in a combo box so the user can choose from this list. On top of that, I want to add "All Departments" to the list.
So the combo box list appeared on user end is:
All Departments -> (not in the database table)
Sales
Accounting
Distribution
etc
How I can do this with JComboBox? Can someone help me, or at least refer me to some information about it?
Thanks very much!
Andre