net.sf.swinglib.table
Class TableUtil
java.lang.Object
net.sf.swinglib.table.TableUtil
public class TableUtil
- extends Object
A collection of static utility methods for working with tables.
Method Summary |
static void |
setRelativeColumnWidths(JTable table,
int... widths)
Sets the preferred widths of the columns of a table to the specified
percentages of the current width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableUtil
public TableUtil()
setRelativeColumnWidths
public static void setRelativeColumnWidths(JTable table,
int... widths)
- Sets the preferred widths of the columns of a table to the specified
percentages of the current width. The caller may provide more or
fewer values than actual columns in the table: excess values are
ignored, excess columns will divide up width not assigned by the
provided values (which may make them tiny). If the provided widths
total more than 100%, the table will be expanded.