code: private Point getMonthOrYearMenuLocation(JLabel sourceLabel, JPopupMenu filledPopupMenu) {
          Rectangle labelBounds = sourceLabel.getBounds();
          int menuHeight = filledPopupMenu.getPreferredSize().height;
          int popupX = labelBounds.x + labelBounds.width + 1;
          int popupY = labelBounds.y + (labelBounds.height / 2) - (menuHeight / 2);
          return new Point(popupX, popupY);
      }
docs: getMonthOrYearMenuLocation, This calculates the position should be used to set the location
  of the month or the year popup menus, relative to their source labels. These menus are used
  to change the current month or current year from within the calendar panel.