Code example for JList

Methods: setSelectedValue

0
		} 
 
	@Override 
	protected void setComponent(Object v) 
		{ 
		list.setSelectedValue(v,true);
		} 
 
	@Override 
	public void remove() 
		{ 
		super.remove(); 
		list.removeListSelectionListener(this);
		} 
 
	@Override 
	public void updated(PropertyUpdateEvent<K> e)
		{ 
		editComponentIfChanged(list.getSelectedValue());
		}