aspose 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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT table.pack()