This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I'm not able to use actionlistener in selecting value of jcombobox with arrow keys. This jcombobox is in a jtable. The actionlistener works fine only if an enter key is pressed, but not for every select with arow.
That's because the selection does not change yet. You could try to get a hold of the JList that is actually used, and add a ListSelectionListener to that.
Some investigation has lead me to interface javax.swing.plaf.basic.ComboPopup which has a getList method, but that's as far as I got at the moment. I haven't been able to find out how to get a reference to this from a JComboBox reference. Perhaps you can get a bit further now you have a start where to look.