Control.setSize

Sets the receiver's size to the point specified by the argument. <p> Note: Attempting to set the width or height of the receiver to a negative number will cause them to be set to zero instead. </p>

@param size the new size 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>

  1. void setSize(Point size)
    class Control
    void
    setSize
  2. void setSize(int width, int height)

Meta