Intercepting mouse events on JComboBox

Discussion in 'Java' started by Ike, Jun 8, 2006.

  1. Ike

    Ike Guest

    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
    Ike, Jun 8, 2006
    #1
    1. Advertising

  2. Ike

    Vova Reznik Guest

    Ike wrote:
    > 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.
    Vova Reznik, Jun 8, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. f
    Replies:
    1
    Views:
    4,890
    Steve Claflin
    Oct 8, 2003
  2. Etantonio
    Replies:
    3
    Views:
    498
    Ian Wilson
    Nov 15, 2006
  3. bryan rasmussen
    Replies:
    2
    Views:
    349
    Jordan
    Oct 9, 2006
  4. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    340
    Chris
    Aug 30, 2005
  5. Rainer
    Replies:
    3
    Views:
    114
    Rainer
    Jan 6, 2008
Loading...

Share This Page