-1
In my system is giving error in the line of code
ModelUsuario modelUsuario = new ModelUsuario();
ControllerUsuario controllerUsuario = new ControllerUsuario();
//recebe a linha selecionada
int linha = this.jTableUsuarios.getSelectedRow();
int codigo = (Integer) jTableUsuarios.getValueAt(linha, 0); //erro aqui
I am trying to throw the dice from the table on a Jtextfield, but when I click on the button appears this error
What is this line variable? What is its origin? Add to the question as well.
– user28595
ModelUsuario modelUsuario = new ModelUsuario();
 ControllerUsuario controllerUsuario = new ControllerUsuario();

 //recebe a linha selecionada
 int linha = this.jTableUsuarios.getSelectedRow();
– Eliseu Oliveira
Please add a [mcve] of your code, so it is possible to reproduce the problem.
– user28595