Created
September 17, 2010 13:03
-
-
Save sudar/584199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MouseAdapter handler = new MouseAdapter() { | |
//Override methods | |
} | |
// Get all children of the combobox | |
Component c[] = combobox.getComponents(); | |
for (int i =0; i < c.length; i++) { | |
// add event listener to all of the child components | |
c[i].addMouseListener(handler); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment