As far as i remember getSelectedValue() returns an object. Also in your if statement you would not want to use the = operator. That's for assignments. Use the equals() method instead which has been overridden in the String class to test for String equality.




Reply With Quote