public String getColumnName(int colIndex) {
            String name;
            int index = colIndex + firstDayOfWeek;
            if (index > Calendar.SATURDAY) {
                index = Calendar.SUNDAY;
            }
            switch (index) {
                case Calendar.SUNDAY:
                    name = NAMES_OF_DAYS[0];
                    break;
                case Calendar.MONDAY:
                    name = NAMES_OF_DAYS[1];
                    break;
                case Calendar.TUESDAY:
                    name = NAMES_OF_DAYS[2];
                    break;
                case Calendar.WEDNESDAY:
                    name = NAMES_OF_DAYS[3];
                    break;
                case Calendar.THURSDAY:
                    name = NAMES_OF_DAYS[4];
                    break;
                case Calendar.FRIDAY:
                    name = NAMES_OF_DAYS[5];
                    break;
                case Calendar.SATURDAY:
                    name = NAMES_OF_DAYS[6];
                    break;
                default:
                    name = "";
            }
            return name;
        }