Intercepting mouse events on JComboBox

I

Ike

Anyone know how to intercept a mouse event on a JComboBox? Specifically, I
am trying to give a different functionality if the Component is
right-clicked upon (MouseEvent.isMetaDown()) but I cannot find in the source
where this might occur to override it? Thanks, Ike
 
V

Vova Reznik

Ike said:
Anyone know how to intercept a mouse event on a JComboBox? Specifically, I
am trying to give a different functionality if the Component is
right-clicked upon (MouseEvent.isMetaDown()) but I cannot find in the source
where this might occur to override it? Thanks, Ike

JComboBox contains 2 Components:
- javax.swing.plaf.metal.MetalComboBoxButton
- javax.swing.CellRendererPane

MetalComboBoxButton is JButton.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top