Отображается общее количество столбцов таблицы. Исключение в потоке "AWT-EventQueue-0" java.lang.NumberFormatException: null вот мой код [code]public void showData4() {
try { String search = jTextField1.getText(); Connection con = Connectionz.getConnection(); PreparedStatement pst = con.prepareStatement("select * from ReceiptTable where ReceivedFrom='" + search + "'");
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: int total = 0; for (int i = 0; i < jTable4.getRowCount(); i++){ int amount = Integer.parseInt((String) jTable2.getValueAt(i, 3)); total += amount; } System.out.println(total); } [/code] Исключение в потоке «AWT-EventQueue-0» java.lang.NumberFormatException: null