);
}// </editor-fold>//GEN-END:initComponents
private void jButtonSelectValuesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSelectValuesActionPerformed
SelectItensFrame f = new SelectItensFrame();
ListSelectionPanel l = (ListSelectionPanel) f.getListSelectionPanel();
setModels(l);
String[] entradas = jTextValue.getText().split(", ");
l.selectAvailableElements(entradas);
f.setModal(true);
f.setLocationRelativeTo(null);
f.setVisible(true);
if (!f.isCanceled()) {
if (selectOnlyOne && l.getSelectedElements().length > 1)
JOptionPane.showMessageDialog(this, selectOnlyOneErrorMessage);
else {
Object[] s = l.getSelectedElements();
//Enumeration e = new Enumeration(args);
jTextValue.setText(arrayToString(s));
}
}
}//GEN-LAST:event_jButtonSelectValuesActionPerformed