private void edit_branch_locations() {
   if (tf_branch.getText().isEmpty()) {
     return;
   }
   jProgressBar1.setString("Loading...Please wait...");
   jProgressBar1.setIndeterminate(true);
   btn_new.setEnabled(false);
   btn_add.setEnabled(false);
   btn_edit.setEnabled(false);
   btn_delete.setEnabled(false);
   Thread t =
       new Thread(
           new Runnable() {
             @Override
             public void run() {
               int row = tbl_branch_locations.getSelectedRow();
               if (row < 0) {
                 return;
               }
               to_branch_locations to =
                   (to_branch_locations)
                       tbl_branch_locations_ALM.get(
                           tbl_branch_locations.convertRowIndexToModel(row));
               int id = to.id;
               String branch = tf_branch.getText();
               String branch_id = tf_branch_id.getText();
               String code = "";
               String location = tf_location.getText();
               String type = "USER";
               int status = 0;
               to_branch_locations to1 =
                   new to_branch_locations(id, branch, branch_id, code, location, type, status);
               S1_branch_locations.edit_branch_locations(to1);
               data_cols();
               clear_branch_locations();
               Alert.set(2, "");
               jProgressBar1.setString("Finished...");
               jProgressBar1.setIndeterminate(false);
               btn_new.setEnabled(true);
               btn_add.setEnabled(true);
               btn_edit.setEnabled(true);
               btn_delete.setEnabled(true);
             }
           });
   t.start();
 }
 /**
  * Creates new form VerdisCrossoverPanel.
  *
  * @param verdisCrossoverPort DOCUMENT ME!
  */
 public VerdisCrossoverPanel(final int verdisCrossoverPort) {
   initComponents();
   configurePopupMenue();
   panAll.setLayout(layout);
   panAll.removeAll();
   panAll.add(panContentProgress, PROGRESS_CARD_NAME);
   panAll.add(panContent, CONTENT_CARD_NAME);
   panAll.add(panContentMessage, MESSAGE_CARD_NAME);
   // TODO Jean
   tblKassenzeichen.setModel(tableModel);
   tblKassenzeichen.addMouseListener(this);
   tblKassenzeichen.addMouseListener(new PopupListener());
   tblKassenzeichen.getSelectionModel().addListSelectionListener(this);
   this.verdisCrossoverPort = verdisCrossoverPort;
   pgbProgress.setIndeterminate(true);
   //        this.add(panContentProgress, BorderLayout.CENTER);
   layout.show(panAll, PROGRESS_CARD_NAME);
 }