private void acceptButtonDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acceptButtonDeleteActionPerformed
        boolean error = false;
        String errorString = "";
        Object[] what = new Object[6];
        what[0] = enabledConnectionDelete.isSelected();
        if (!userDeleteData.getText().equalsIgnoreCase(""))
            what[1] = userDeleteData.getText();
        else {
            error = true;
            errorString += "No user specified.\n";
        }
        if (!passDeleteData.getText().equalsIgnoreCase(""))
            what[2] = passDeleteData.getText();
        else {
            error = true;
            errorString += "No pass specified.\n";
        }
        
        what[3] = conectionFieldDelete.getText();
        what[4] = tableTextDelete.getText();
        if (tableTextDelete.getText().equalsIgnoreCase("")) {
            error = true;
            errorString += "Table field is missing.\n";
        }
        what[5] = conditionDelete.getText();
        if (conditionDelete.getText().equalsIgnoreCase("")) {
            error = true;
            errorString += "Condition field is missing.\n";
        }
        if (!error) {
        Controller.controller(Controller.DELETEBD, what);
        this.dispose();
        } else {
            JOptionPane op = new JOptionPane();
            int messagetype = JOptionPane.ERROR_MESSAGE; //JOptionPane.INFORMATION_MESSAGE
            op.showMessageDialog(this, errorString, "[ERROR] Some fields are missing", messagetype);
        }
    }//GEN-LAST:event_acceptButtonDeleteActionPerformed