CoolItem.setPreferredSize

Sets the receiver's ideal size to the point specified by the argument.

@param size the new ideal 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 setPreferredSize(int width, int height)
  2. void setPreferredSize(Point size)
    class CoolItem
    void
    setPreferredSize

Meta