title: JList selection changed
body: <p>I'm using Netbeans to create a JList and an event listener. 
  I want to retrieve the object the user selected, when it's selected.
  So far I've got this:</p>
  
  <pre><code>private void listKurserValueChanged(javax.swing.event.ListSelectionEvent evt) {
      System.out.println("" + ((listKurser)evt.getSource()));
  }
  </code></pre>
  
  <p>However, I'm getting "cannot find symbol" at listKurser, which is the JList.</p>
  
  <p>What is wrong?</p>