posted 22 years ago
hi,
attach a MouseListener to the JList and get the Point of the mouse click. you can than set the selection in the JList automatically.
see JList.locationToIndex(Point), JList.setSelectedIndex(int), and JList.setSelectedValue(Object, boolean) (for scrolling), JViewport.scrollRectToVisible(Rectangle).
Chantal