dsto.dfc.swing.table
Class Tables

java.lang.Object
  extended by dsto.dfc.swing.table.Tables

public final class Tables
extends Object

General utility methods for JFC tables.

Version:
$Revision$
Author:
Matthew Phillips

Method Summary
static int getBestColumnHeaderSize(JTable table, TableColumn column)
          Get the best size for a TableColumn.
static int getBestColumnSize(JTable table, TableColumn column)
          Get the minimum width of a column required to display all items, including the header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBestColumnHeaderSize

public static int getBestColumnHeaderSize(JTable table,
                                          TableColumn column)
Get the best size for a TableColumn.

Parameters:
table - The table containing the column.
column - The column.

getBestColumnSize

public static int getBestColumnSize(JTable table,
                                    TableColumn column)
Get the minimum width of a column required to display all items, including the header.



Copyright © 2008 Commonwealth of Australia