public void calcDmFlags(int flag) {
            init();
            Integer buff = 0;
            for (int i = 0; i < DMFLAGS_VALUE.length; i++) {
                if (dmFlagsOn[i]) {
                    buff += DMFLAGS_VALUE[i];
                }

            }
            dmFlagJTextFields[0].setText(buff.toString());

        }