Re: What to override inJComboBox



Monique Y. Mudama wrote:
On 2005-08-29, bobjan penned:

I need a class that extends JComboBox, but with slightly different
behaviour. I want to intercept mouse click on an item in the list,
do some processing, and sometimes prevent the item to be treated as
selected.  I think it could be done by overriding some JComboBox
method  but don't know which one(s). I have tried with custom
renderers, editors, listmodels, but no success.  Can anyone give me
a clue ?


What about just the MouseListener stuff?

And what about JComboBox.addItemListener? ItemListener has an itemStateChanged method, which is invoked when an item has been selected/deselected.

--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

.