Menu.setLocation

Sets the location of the receiver, which must be a popup, to the point specified by the argument which is relative to the display. <p> Note that this is different from most widgets where the location of the widget is relative to the parent. </p><p> Note that the platform window manager ultimately has control over the location of popup menus. </p>

@param location the new location for the receiver

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the point is null</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@since 2.1

  1. void setLocation(int x, int y)
  2. void setLocation(Point location)
    class Menu
    void
    setLocation

Meta