Control.setLocation

Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell. In this case, the point is relative to the display.

@param x the new x coordinate for the receiver @param y the new y coordinate for the receiver

@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>

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

Meta