private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String a; a = jTextField3.getText(); int x = Integer.parseInt(a); Comprador comprador = new Comprador( jTextField1.getText(), jTextField2.getText(), x, (Integer)jSpinner1.getValue()); comprador.inserirComprador(conexao); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { String a; a = jTextField6.getText(); int x = Integer.parseInt(a); Comprador comprador = new Comprador(jTextField4.getText(), jTextField5.getText(), x, (Integer)jSpinner2.getValue()); comprador.removerComprador(conexao); } .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)