TableView

0 respostas
javaprogramação
M
Eu tenho uma TableView onde eu seto uns textfield , acontece que quero somar os valores dele e colocar em outro textfield, mas não to conseguindo

fiz assim, mas não retornou nd

public void setValueAt(Object o, Object n, int linha, int coluna) {

if (coluna == 2 || coluna == 3 || coluna == 4 || coluna == 5 || coluna == 6) {

float total = getLinhas().get(linha).getNumnot1()+getLinhas().get(linha).getNumnot2()+getLinhas().get(linha).getNumnot3()+getLinhas().get(linha).getNumnot4();
getLinhas().get(linha).setNumTotal(total);
                                                              
                
    }
}
Criado 28 de setembro de 2017
Respostas 0
Participantes 1