public void validateErrors() {
        for (int i = 0; i < areaParams.length; i++) {
            if (((BaseValidator) areaParams[i].getKeyListeners()[0]).hasError) {
                areaParams[i].setBackground(Color.RED);
                hasErrors = true;
            }
        }
        for (int i = 0; i < baseCounter.coils.length; i++) {
            if (checkBoxes[i].isSelected()) {
                for (int j = 0; j < coilDoubleFields[i].length; j++) {
                    if (((BaseValidator) coilDoubleFields[i][j].getKeyListeners()[0]).hasError) {
                        coilDoubleFields[i][j].setBackground(Color.RED);
                        hasErrors = true;
                    }
                }
                for (int j = 0; j < coilUnsignedFields[i].length; j++) {
                    if (((BaseValidator) coilUnsignedFields[i][j].getKeyListeners()[0]).hasError) {
                        coilUnsignedFields[i][j].setBackground(Color.RED);
                        hasErrors = true;
                    }
                }
            }
        }
    }