File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes SWT table.pack() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT table.pack()" Watch "SWT table.pack()" New topic
Author

SWT table.pack()

Jonathan Smiths
Greenhorn

Joined: Jan 29, 2010
Posts: 15
I am trying to create a table object with two columns.
The table should be flexible in width, based on the width of the contents of it.
I do this using column.pack() and table.pack().
However, the table never "really" packs, there is always some space right to the second column.
Also there is some space below the lowest table item, about the size of half an item.
I can not use fixed width for the table. How can I get rid of that extra space on the right side and the bottom?
 
Consider Paul's rocket mass heater.
 
subject: SWT table.pack()