In Swing, We don't have any default way of mapping a set of KeyStrokes to a specific task. Or I should say We didn't had one earlier but now, it is possible with KeyStrokeListener. This implementation ...
and the main class was extended by Canvas and implemented by Runnable and KeyListener, anothers Java's natives features.
You could extend JList and add the appropriate listeners in the constructor. I think this would be the easiest way, as the JFrame will send the events, but each list will still have to be ...
Not open for further replies.