title: How to handle multiple jLists with one ListSelectionEvent
body: <p>I have three jLists in my class <code>frmMain</code>. I have created a class called <code>ListActions</code>.  The code below is working for one jList.  It returns the value clicked for one jList.  </p>
  
  <p>How do I distinguish between the three other jList?   Or do I need to create a seperate class for each listener? </p>
  
  <p>I need to perform an action based on which jList was clicked. I attempted to see if I could access the variable name of the jList that was clicked, but couldn't find a way to do this...</p>
  
  <pre><code>class ListActions implements ListSelectionListener {
  
  public void valueChanged(ListSelectionEvent evt) {
  
      if (!evt.getValueIsAdjusting()) {
  
          JList list = (JList) evt.getSource();
  
          int iSelectedDatabase = list.getSelectedIndex();
          Object objSelectedDatabase = list.getModel().getElementAt(iSelectedDatabase);
          String sSelectedDatabase = objSelectedDatabase.toString();
  
  
          JOptionPane.showConfirmDialog(null, sSelectedDatabase);
  
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks,
  - Jason</p>