private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed
        try {
            BigDecimal value;
            try{
                value = new BigDecimal(addField.getText());
                value.setScale(2, RoundingMode.FLOOR);
            }catch(NumberFormatException e){
                value = BigDecimal.ZERO;
            }
            logWriter.writeToFile("added " + value );
            updateBalance(addField, value);
            } catch (IOException ex) {
            Logger.getLogger(Accounting.class.getName()).log(Level.SEVERE, null, ex);
        }
        addField.setText("");
    }//GEN-LAST:event_addButtonActionPerformed