Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » What can shell.pack() do ?
What can shell.pack() do ? [message #466094] Sat, 31 December 2005 22:03 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.doc.gmail.com

This is a multi-part message in MIME format.
--------------010100010704060209010206
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 7bit

Hi all
/* I want to know the pack() method can do what ?
:-P can u tell me ?*/

Thanks

--------------010100010704060209010206
Content-Type: text/x-vcard; charset=utf-8;
name="eclipse.doc.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="eclipse.doc.vcf"

YmVnaW46dmNhcmQNCmZuOlRpbnkgTGl1DQpuOkxpdTtUaW55DQplbWFpbDtp bnRlcm5ldDpl
Y2xpcHNlLmRvY0BnbWFpbC5jb20NCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQN Cg0K
--------------010100010704060209010206--
Re: What can shell.pack() do ? [message #466096 is a reply to message #466094] Sat, 31 December 2005 23:55 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Shell#pack() (or more properly, Composite#pack()) uses a recursive algorithm to layout all widgets in the most compact way possible using the layout manager and shrinks the size of the Composite (or shell) to match that minimum size. Be forewarned, however, that this method won't give you the perfect size and layout for your Shell. Very often, your Shell will be sized incorrectly by pack() since it does take the minimum size allowed by the layout and widget configuration.

It's basically the same as JFrame#pack()
Previous Topic:How to setting ROW HEIGHT with Table ?
Next Topic:Viewer for collection of text fields
Goto Forum:
  


Current Time: Sat Dec 07 02:45:36 GMT 2024

Powered by FUDForum. Page generated in 0.03665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top