Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int row = 0; row < jTable1.getRowCount(); row++) {
- int severidade = 0;
- int ocorrencia = 0;
- int deteccao = 0;
- if (jTable1.getValueAt(row, 7) != null && jTable1.getValueAt(row, 7).toString() != "") {
- severidade = Integer.valueOf(jTable1.getValueAt(row, 7).toString());
- }
- if (jTable1.getValueAt(row, 12) != null && jTable1.getValueAt(row, 12).toString() != "") {
- ocorrencia = Integer.valueOf(jTable1.getValueAt(row, 12).toString());
- }
- if (jTable1.getValueAt(row, 14) != null && jTable1.getValueAt(row, 14).toString() != "") {
- deteccao = Integer.valueOf(jTable1.getValueAt(row, 14).toString());
- }
- jTable1.setValueAt(severidade * ocorrencia * deteccao, row, 15);
- }
Add Comment
Please, Sign In to add comment