private void reflectBaseDate() {
    Calendar calendar = getCalendar(baseDate);
    calendar.set(Calendar.DAY_OF_MONTH, 1);

    int skipBefore = calendar.get(Calendar.DAY_OF_WEEK)
        - calendar.getFirstDayOfWeek();
    if (skipBefore < 0)
      skipBefore = 7 + skipBefore;

    int activeDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);

    int numActiveWeeks = (activeDays + skipBefore) / 7;
    if ((activeDays + skipBefore) % 7 > 0)
      numActiveWeeks++;

    int startWeek = calendar.get(Calendar.WEEK_OF_YEAR);

    for (int i = 0; i < 6; i++) {
      labels[i].setText(startWeek > 0 && numActiveWeeks > 0 ? String
          .valueOf(startWeek) : "");

      labels[i].setForeground(isEnabled() ? UIManager
          .getColor("controlText") : UIManager
          .getColor("textInactiveText"));
      
      calendar.add(Calendar.WEEK_OF_YEAR, 1);
      startWeek = calendar.get(Calendar.WEEK_OF_YEAR);

      numActiveWeeks--;
    }

    setBackground(isEnabled() ? backgroundColorActive
        : backgroundColorInactive);
  }
private void reflectBaseDate()