Control.setBounds

Sets the receiver's size and location to the rectangular area specified by the argument. The <code>x</code> and <code>y</code> fields of the rectangle are relative to the receiver's parent (or its display if its parent is null). <p> Note: Attempting to set the width or height of the receiver to a negative number will cause that value to be set to zero instead. </p>

@param rect the new bounds 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 setBounds(Rectangle rect)
    class Control
    void
    setBounds
  2. void setBounds(int x, int y, int width, int height)

Meta