This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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