public void compatUpdate(int c, int mode) {
            if (mode == 1) {
                int[] translatedFlags = translateFlag(c);
                for (int i = 0; i < COMPAT_SIZE; i++) {
                    if (translatedFlags[i] == 1) {
                        compatFlags.compatCheckBox[i].setSelected(true);
                    } else {
                        compatFlags.compatCheckBox[i].setSelected(false);
                    }
                }
            }
            if (mode == 2) {
                int[] translatedFlags = translateFlag(c);
                for (int i = 0; i < COMPAT2_SIZE; i++) {
                    if (translatedFlags[i] == 1) {
                        compatFlags2.compatCheckBox[i].setSelected(true);
                    } else {
                        compatFlags2.compatCheckBox[i].setSelected(false);
                    }
                }

            }

        }