public void calcularTotal(String valor,String despesa,String desconto){
        //DecimalFormat formatador = new DecimalFormat("###,##0.00");
        DecimalFormat formatador = new DecimalFormat("#,##0.00");
        try {
           
            Locale locBrazil = new Locale("pt", "BR");  
            NumberFormat nf = NumberFormat.getInstance(locBrazil);
            
            Number valorP = nf.parse(valor);
            Number valorDesc = nf.parse(desconto);
            Number valorDesp = nf.parse(despesa);
            
            double n1,n2,n3, total;
            
            n1 = valorP.doubleValue();
            n2 = valorDesp.doubleValue();
            n3 = valorDesc.doubleValue();
            
            total = (n1+n2)-n3;
            
            
            String nTotal = String.valueOf(total);
            tfTotal.setText(formatador.format(total));
                        

        } catch (Exception e) {
            System.err.println(e);
        }
        
        //String totalGeral = NumberFormat.getCurrencyInstance().format(novoTotal);
        //tfTotal.setText(totalGeral);
    }