Control.pack

Causes the receiver to be resized to its preferred size. For a composite, this involves computing the preferred size from its layout, if there is one.

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

@see #computeSize(int, int, bool)

  1. void pack()
    class Control
    void
    pack
    (
    )
  2. void pack(bool changed)

Meta