To my knowledge, there is nothing in JComboBox that might cause such a behavior. I suspect the problem is somewhere in your code: either in your custom data model or in the code that handles adding items to the model. As the first step, I'd recommend you modify the add method of the model to check what kind of objects are been added. If they are all ObjectX, then you know the problem is in the data model code.
Cheers Dmitry At 10:18 AM 1/3/2002, Reinstein, Lenny wrote: >[...] >When I call getItemSelected() the first time, it returns back the object of >type ObjectX, which is what I expect. However, as soon as I select some >other item in the combo box/change the selection, it begins returning the >object of type String, which is not correct. Does anyone know why? How can >fix it? _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing