title: howto change a value of jlist element in jpane dialog
body: <p>I am adding dynamically values in a jlist from a jpane.
  When I double-click on an element of the jlist, I would like to change the value of that element.</p>
  
  <p>How to do this ?</p>
  
  <pre><code>String bigList[] = new String[2];
  bigList[0] = "first value";
  bigList[1] = "second value";
  
  final JList list = new JList(bigList);
  
  list.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 2) {
              int index = list.locationToIndex(e.getPoint());
              System.out.println("Double clicked on Item " + index);
  
              ??????? CHANGEVALUE(index,"MY NEW VALUE); ????????
          }
      }
  });
  JOptionPane jpane = new JOptionPane();
  jpane.showMessageDialog(null, list, "MYTITLE", JOptionPane.PLAIN_MESSAGE);
  </code></pre>