Re: JComboBox keyListener
Get editor component and add KeyListener to it.
Re: JComboBox keyListener
PLease could you (or someone) explain this in better detail...
"editor" component?
Thanks + this is a good question..
Re: JComboBox keyListener
Hi ,
JComboBox has an "Editor"( not a component , javax.swing.plaf.basic.BasicComboBoxEditor )
which is a wrapper around the actual Editor "Component" ( which is JTextField ). To get this
JTextField , first you have to get the "Editor" and then get the actual "Component".
JTextField editorcomp = comboBox.getEditor().getEditorComponent();