public void setConnectingFields() {
        for (int i = 0; i < con.getObjPanel().getPrimitiveObjectives().size(); i++) {
            JObjective obj = (JObjective) con.getObjPanel().getPrimitiveObjectives().get(i);
            BaseTableContainer btc = findPrimitive(obj.getName());
            if (btc != null) {
                AttributeCell ac = (AttributeCell) btc.getTable();
                obj.setDomain(ac.getDomain());
                obj.setUnit(ac.getUnits());
                double pc = btc.getOverallRatio();
                obj.setWeight(String.valueOf(pc));
                //connect ac and obj
                ac.obj = obj;
                obj.acell = ac;
                if (obj.domain_type == JObjective.CONTINUOUS) {
                    if (obj.getUnit().equals("CAD")) {
                        obj.setDecimalFormat("0.00");
                    }
                    if (obj.maxC > 100) {
                        obj.setDecimalFormat("0");
                    } else {
                        obj.setDecimalFormat("0.0");
                    }
                    if (ac.cg != null) {
                        ac.cg.repaint();
                    }
                }
            }
        }
    }