Home » Unlabelled » How would you detect a keypress in a JComboBox? | Java Swings
Sunday, 19 February 2012
How would you detect a keypress in a JComboBox? | Java Swings
This is a trick. most people would say ‘add a KeyListener to the JComboBox’ - but the right answer is ‘add a KeyListener to the JComboBox’s editor component.’
No comments:
Post a Comment