Control.setBounds

Sets the receiver's size and location to the rectangular area specified by the arguments. The <code>x</code> and <code>y</code> arguments 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 <code>x</code> and <code>y</code> arguments are relative to the display. <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 x the new x coordinate for the receiver @param y the new y coordinate for the receiver @param width the new width for the receiver @param height the new height 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)
  2. void setBounds(int x, int y, int width, int height)
    class Control
    void
    setBounds
    (
    int x
    ,
    int y
    ,
    int width
    ,
    int height
    )

Meta