title: JList add/remove Item
body: <p>Hi I have to pick an element from a JList to another, removing it from the first
  The method I've created inserts only one element, overwriting the last one and doesn't remove the selected item from the first JList
  Here's the code:</p>
  
  <p>First list</p>
  
  <pre><code>private javax.swing.JList listaRosa;
  </code></pre>
  
  <p>Populated by this method:</p>
  
  <pre><code>private void visualizzaRosaButtonvisualizzaRosa(java.awt.event.ActionEvent evt) {                                                    
      // TODO add your handling code here:
      visualizzaSquadraSelezionata();
      String fileSquadra;
      fileSquadra = squadraDaVisualizzare.getText();
      DefaultListModel listModel = new DefaultListModel();
      try {
          FileInputStream fstream = new FileInputStream("C:/Users/Franky/Documents/NetBeansProjects/JavaApplication5/src/javaapplication5/Rose/"+fileSquadra+"");
          // Get the object of DataInputStream
          DataInputStream in = new DataInputStream(fstream);
          BufferedReader br = new BufferedReader(new InputStreamReader(in));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)   {
              listModel.addElement(strLine);
              System.out.println(strLine);
          }
          listaRosa.setModel(listModel);
          //Close the input stream
          in.close();
      } catch (Exception e) {
      }
  </code></pre>
  
  <p>The second list, where I want to insert items removing from the first:</p>
  
  <pre><code>private javax.swing.JList listaTitolari
  </code></pre>
  
  <p>Here's the NOT working code:</p>
  
  <pre><code>private void aggiungiTitolareButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                       
      // TODO add your handling code here:
      DefaultListModel listModel = new DefaultListModel();
      String daInserire;
      listModel.addElement(listaRosa.getSelectedValue());
      listModel.removeElement(listaRosa.getSelectedValue());
      listaTitolari.setModel(listModel);
  } 
  </code></pre>
  
  <p>Thanks</p>