private void compute_charges() {
   //
   double total = 0;
   if (tbl_charges_ALM.isEmpty()) {
     total = 0;
   } else {
     List<S2_customers.to_cust_charges> datas = tbl_charges_ALM;
     for (S2_customers.to_cust_charges to : datas) {
       total += to.amount;
     }
   }
   tf_total.setText("" + NumType.with_comma(Double.parseDouble("" + total)));
 }
  private void myInit() {

    //        MyDB.setNames("db_pos_restaurant");
    if (System.getProperty("version", "resto").equals("resto")) {
      ds_title.setText("Customers");
    }
    //           if (System.getProperty("os.name").equalsIgnoreCase("linux")) {
    //
    //            this.setUndecorated(true);
    //        } else {
    ////             JOptionPane.showMessageDialog(null, System.getProperty("os.name"));
    //            this.setUndecorated(false);
    //        }
    tf_search.grabFocus();
    init_long_press();
    init_key();
    init_tbl_baptism();
    //        init_auto_scroll();
    init_tbl_charges();
    hiden(false);
    action_year();
  }
 private void hiden(boolean aw) {
   btn_ok1.setVisible(aw);
   jLabel13.setVisible(aw);
   jLabel14.setVisible(aw);
 }