Probably reading this wrong, but couldn't you just use list.setSelectedIndex(whatever); which should fire valueChanged() (assuming ListSelectionListener is added, and the selection is other than current selection).
Perhaps another way is to call valueChanged(new ListSelectionEvent(list,whateverIndex,whateverIndex,false);
Joined: May 18, 2004
I found out that the event is firing, but because I have if(!le.getValueAdjusting()) return;
for the user part of the selection, for some reason it is filtering out the programmatic selection. So now I'm looking for how to get past that.
subject: JList programmatic selection but no event firing.