title: Mouse listener keeps value after close and reopen procedure recreate mouse listener
body: <p>In my Java application I use a mouse listener to determine which record is selected into table (from MySQL).  </p>
  
  <p>When the user presses the mouse into the table to selecting some record, and then close procedure, reopen it, the mouse listener keeps the value and it seems like the user again selected the same record onto table, but would be a empty.  </p>
  
  <p>And, after that, this value is kept (not cleaned) after clicking onto another record into table. How could I empty that after closing procedure and reopen it?</p>
  
  <p>I tried <code>table.getSelectionModel().clearSelection()</code> that closes procedure, but it's still not working.
  This is a mouse listener:</p>
  
  <pre><code>jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
              jTable1MouseClicked(evt);
          }
  });
  
   private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {                                     
      jTable1.setRowSelectionAllowed(true);
      try {
          int row=jTable1.convertRowIndexToModel(jTable1.getSelectedRow());  
          if (row !=-1) {
          //some code
          }
      }catch (Exception e) {
          System.out.println("Greska:" + e);
      } 
  </code></pre>
  
  <p>When closing procedure:</p>
  
  <pre><code>public void zatvoriProzor() {
      jTable1.getSelectionModel().clearSelection();
      pMeniIfa.PocMeniZatvoriVel2();
  }
  </code></pre>