Sandeep Swaminathan wrote:Well well .. I have another doubt! How do you check whether an item from a combo box is selected or not? Would like to know whether JComboBox.getSelectedItem() has been chosen or not? Must return a boolean variable.
If it is chosen, it has to be selected right?
So you take the selected item and compare it with your item and figure out the boolean.
There is no ready made method like myCombo.isSelected(Object myItem) which will return a boolean.