public void updateRegisterItem(RegisterItem ri) {
        int index = -1;
        for (RegisterItem ril : registerItemList) {
            index++;
            if (ri.getToolID().equals(ril.getToolID())) { //registerItemList.indexOf(ri) != -1;
                registerItemList.set(index, ri);
                //Fire table row update notification to table.
                fireTableRowsUpdated(index, index);
            }
        }
    }