KeyListener not working for JLIST Component.
Cursor control is not working for JLIST component.
My application has combobox which is used to multiselect the list of JLIST items.
Combobox--> JPopupMenu--> JList.
When an item is selected in JList through mouse, combobox text field will be updated with those selected values. So next time when the focus comes to this Combobox, it opens the popupmenu with the selected JList items.
MouseListeners are working absolutely fine. But KeyListener is not working.
I am able to set the focusGained and FocusLost event for Combobox but unable to get the focus and cursor control to JList component.
please give a lead on this.
Re: KeyListener not working for JLIST Component.
Can you post a small, complete program that compiles, executes and shows the problem?