Meaningless Drivel is fun!
The moose likes Swing / AWT / SWT and the fly likes Mouse Listener on JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Mouse Listener on JComboBox" Watch "Mouse Listener on JComboBox" New topic

Mouse Listener on JComboBox

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
I need to implement a mouse listener on the JList part of JCombo box. As i have read, Swing's implementation of a ComboBox --is a combination of a text field and drop-down list .
So when i do
Component[] comps = c.getComponents();
for(int i = 0; i < comps.length; i++)
The mouse listents to mouse events on the combo. But instead i want the mouse events(like double click) on the list that appears below the JCombo , and not on the JCombo.
How do i do that?
I agree. Here's the link:
subject: Mouse Listener on JComboBox
It's not a secret anymore!