title: How to deselect Jlist item on some event in java
body: <p>could any one suggest me any method or any other way in java that i could deselect my jlist item when some event occurs?
      i tried this but this does not seem to work</p>
  
  <pre><code>myJList.setSelectedIndex(-1);
  myJList.ensureIndexIsVisible(-1);
  </code></pre>