private void jList1ValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jList1ValueChanged
        
        if (editor == jTextField1) {
            if (jList1.getSelectedValue() == null) jTextField1.setText("");
            else jTextField1.setText(jList1.getSelectedValue().toString());
        } else if (editor == jComboBox1) {
            if (jList1.getSelectedValue() == null) {
                jComboBox1.setSelectedIndex(jComboBox1.getItemCount()>0?0:-1);
            }
            else jComboBox1.setSelectedItem(jList1.getSelectedValue());
        } else if (editor == pointPanel) {
            if (jList1.getSelectedValue() == null) {
                jSpinner1.setValue(0);
                jSpinner1.setValue(0);
            } else {
                jSpinner1.setValue(((Point)jList1.getSelectedValue()).x);
                jSpinner1.setValue(((Point)jList1.getSelectedValue()).y);
            }
        } else if (editor == CharStringMapPanel) {
            if (jList1.getSelectedValue() == null) {
                jTextField2.setText("");
                jTextField3.setText("");  
            } else {
                jTextField2.setText(((Map.Entry)jList1.getSelectedValue()).getKey().toString());
                jTextField3.setText(((Map.Entry)jList1.getSelectedValue()).getValue().toString());  
            } 
        }
    }//GEN-LAST:event_jList1ValueChanged