private void copyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_copyButtonActionPerformed
        Connection destConnection = this.connectionsList.getSelectedValue();
        if(destConnection == null)
            return; // User hasn't selected anything.
        
        String name = this.studyName.getText();
        if(name.equals(""))
            return; // No name specified.
        
        destConnection.copyStudyInto(name, sourceStudy);
        this.dispose();
    }//GEN-LAST:event_copyButtonActionPerformed