Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mouse Listener on JComboBox  RSS feed

Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!