wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT table.pack()" Watch "SWT table.pack()" New topic

SWT table.pack()

Jonathan Smiths

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()
Similar Threads
how to correctly align two tables?
Displaying JTable Column names in the GUI
Space not releasing on toggle of divs
Same CSS rule for td width works for Firefox, but does not work for IE
Is there a plugin available (e.g. jquery etc) to achieve this functionality?