I'm trying to make a button to register the bank but I'm having trouble converting the int to String.
Follow my line of code:
private void jBtnCadastroActionPerformed(java.awt.event.ActionEvent evt) {
f = new Funcionario(String.valueOf(jtxtFuncionario.getText()),
jTxtDepartamento.getText());
jtxtFuncionario.setText("");
jTxtDepartamento.setText("");
f.Save();
}
In the line " f = new Funcionario(String.valueOf(jtxtFuncionario.getText())
" the following error appears:
string can not be converted to string