Code example for JList

Methods: addListSelectionListener

0
	public ListLink(JList<V> l, PropertyMap<K> m, K k)
		{ 
		super(m,k);
		list = l;
		reset(); 
		list.addListSelectionListener(this);
		} 
 
	@Override 
	protected void setComponent(Object v) 
		{ 
		list.setSelectedValue(v,true);
		} 
 
	@Override 
	public void remove() 
		{ 
		super.remove(); 
		list.removeListSelectionListener(this);
		} 
Connect your IDE to all the code out there  Get Codota for Java