192 |
public void setSelectedItem(Object object) |
public void setSelectedItem(Object object) |
193 |
{ |
{ |
194 |
|
|
195 |
/* Updates the selected item only if the given object |
// Updates the selected item only if the given object |
196 |
* is null or in the list (this is how the JDK behaves). |
// is null or in the list (this is how the JDK behaves). |
|
*/ |
|
197 |
if(object == null || list.contains(object)) { |
if(object == null || list.contains(object)) { |
198 |
selectedItem = object; |
selectedItem = object; |
199 |
fireContentsChanged(this, -1, -1); |
fireContentsChanged(this, -1, -1); |