Re: What to override inJComboBox
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 14:22:58 GMT
Monique Y. Mudama wrote:
And what about JComboBox.addItemListener? ItemListener has an itemStateChanged method, which is invoked when an item has been selected/deselected.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?
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@').
- Follow-Ups:
- Re: What to override inJComboBox
- From: bobjan
- Re: What to override inJComboBox
- References:
- What to override inJComboBox
- From: bobjan
- Re: What to override inJComboBox
- From: Monique Y. Mudama
- What to override inJComboBox
- Prev by Date: Re: What to override inJComboBox
- Next by Date: opening a window from an applet..
- Previous by thread: Re: What to override inJComboBox
- Next by thread: Re: What to override inJComboBox
- Index(es):