Code example for JList

Methods: setSelectedIndices

0
	public void setSelectedIndex(int index) {
		this.list.setSelectedIndex(index);
	} 
 
	public void setSelectedIndices(int[] indices) {
		this.list.setSelectedIndices(indices);
	} 
 
	public void setSelectedValue(Object anObject, boolean shouldScroll) {
		this.list.setSelectedValue(anObject, shouldScroll);
	} 
 
	public void setSelectionInterval(int anchor, int lead) {
		this.list.setSelectionInterval(anchor, lead);
	} 
 
}