Hi li li,
I'm using 3 JComboBoxs to let user select origin,destination and carrier. but i just can't use it's getSource() to identify which comboBox is selected. any idea...
How do you initiate the search? Are you trying to build the criteria "on the fly", ie while the combo box has the focus? I had a search button, and built the criteria after the button was pressed by getting the selected item from each combo box. The three combo boxes and the search button were all members of a class which extended JPanel so it was real simple to build the criteria in the actionPerformed of the button.
Hope this helps,
Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher