Package org.atabaque.editors

Examples of org.atabaque.editors.ListSelectionPanel


        );
    }// </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
View Full Code Here

TOP

Related Classes of org.atabaque.editors.ListSelectionPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.