The method to insert has as parameters a String and an int, I want to take the data that is obtained from the txtField but I can not find the way that I do not pull error and let me get it .. In sql server I have declared them exactly the same
art.insertar(txtPro.getText(), txtPre.getText());