title: unable to update JList
body: <p>I have a method in MediaLibrary.java as follows</p>
  
  <pre><code>private void playListActionPerformed(java.awt.event.ActionEvent evt) {                                         
  
      mediaLibraryDTO dto=new mediaLibraryDTO();
      dto.setSongList(currentSongField.getText());
      new Dashboard().libraryList(dto);
  }
  </code></pre>
  
  <p>Similarly I have MediaLibraryDTO.java as follows    </p>
  
  <pre><code>public class mediaLibraryDTO {
      private String songList;
  
      public String getSongList() {
          return songList;
      }
  
      public void setSongList(String songList) {
          this.songList = songList;
      }
  
  }
  </code></pre>
  
  <p>Similarly i have a method in Dashboard.java as follows</p>
  
  <pre><code>public void libraryList(mediaLibraryDTO dto) {
      File file = new File(dto.getSongList());
      JOptionPane.showMessageDialog(null, file);
      JList list = new JList(model);
      model.addElement(file.toString());
      playList.setModel(model);
  }
  </code></pre>