code: public void setPopupPosition(int popupX, int popupY) {
          // Will check if the popup is out of container
          this.popupX = popupX;
          this.popupY = popupY;
          setLeft(popupX);
          setTop(popupY);
      }
docs: Set the popup position of the context menu
  
  @param popupX window x position
  @param popupY window y position