I've got a JList that displays rows of thumbnails using
JList.setLayoutOrientation(JList.JList.HORIZONTAL_WRAP).
By default, the arrow keys let you navigate between the icons, but when it reaches the edge it stops. I would like the right arrow key to work like a typewriter and move to the selected/focus to the first element in the next row.
I tried to add a Keylistener to the JList that manually called
JList.setSelectedIndex( JList.getSelectedIndex() +1 )
but I found that it was skipping to the next line, but now moving *2* elements over.
Is this the right approach, but I need to find a way to cancel the native JList keyListener/Binding, or is there a way to manipulate the focus of the elements in a JList to allow wrap to the next line?