Package com.compomics.util.pride.prideobjects

Examples of com.compomics.util.pride.prideobjects.Contact


    private void okJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okJButtonActionPerformed

        ArrayList<Contact> contacts = new ArrayList<Contact>();

        for (int i = 0; i < contactsJTable.getRowCount(); i++) {
            contacts.add(new Contact(
                    (String) contactsJTable.getValueAt(i, 1),
                    (String) contactsJTable.getValueAt(i, 2),
                    (String) contactsJTable.getValueAt(i, 3)));
        }
View Full Code Here


    private void editJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editJMenuItemActionPerformed
        int selectedRow = contactsJTable.getSelectedRow();

        this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
        new NewContactDialog(this, true, new Contact(
                    (String) contactsJTable.getValueAt(selectedRow, 1),
                    (String) contactsJTable.getValueAt(selectedRow, 2),
                    (String) contactsJTable.getValueAt(selectedRow, 3)),
                    selectedRow);
        this.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
View Full Code Here

     * Saves the contact and closes the dialog.
     *
     * @param evt
     */
    private void okJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okJButtonActionPerformed
        Contact tempContact = new Contact(nameJTextField.getText(), eMailJTextField.getText(), institutionJTextField.getText());
       
        if (modifiedRow != -1) {
            newContactGroupDialog.editContact(tempContact, modifiedRow);
        } else {
            newContactGroupDialog.insertContact(tempContact);
View Full Code Here

TOP

Related Classes of com.compomics.util.pride.prideobjects.Contact

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.