
Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
>>I need a class that extends JComboBox, but with slightly different
>>behaviour. I want to intercept mouse click on an item in the list,
[quoted text clipped - 5 lines]
>
> 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.

Signature
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
bobjan - 29 Aug 2005 16:09 GMT
Yes, I tried with my own Listener, and it cought the click. But I
couldn't deactivate(remove) other Listeners so the Popup disappeared,
and I want to make it visible, until my processing allows it to hide.
To change the question, how can I prevent the popup component to hide ?
Default behavior reacts to the very first click on an item in the list,
the item is selected and the popup hides. I want to make the popup
visible after the item is selected, and hide it only if I want it to.
Naturally, I want it to hide automatically if the focus is moved
elsewhere.