code: private void followOwner() {
          if (owner.isVisible() && owner.isShowing()) {
              try {
                  Point screenLocation = owner.getLocationOnScreen();
                  Point relativeSlaveLocation = anchorLink.getRelativeSlaveLocation(owner.getSize(),
                          TransparentToolTipDialog.this.getSize());
                  setLocation(screenLocation.x + relativeSlaveLocation.x, screenLocation.y + relativeSlaveLocation.y);
              } catch (IllegalComponentStateException e) {
                  LOGGER.error("Failed getting location of component: " + owner, e);
              }
          }
      }
docs: Updates the location of the window based on the location of the owner component.