com.jgoodies.uifextras.util
Class TableUtilities

java.lang.Object
  extended by com.jgoodies.uifextras.util.TableUtilities

public final class TableUtilities
extends Object

This class consists of static methods that provide useful code for handling tables.

Version:
$Revision: 1.5 $
Author:
Karsten Lentzsch

Method Summary
static void leftAlignColumn(TableColumn column)
          Modify the column's header to be aligned left.
static void resizeColumnsToPreferredWidth(JTable table)
          Try to resize the table's columns to get the preferred size of their contents.
static StringBuilder writeAsExportString(TableModel model)
          Creates and answers a comma separated string from the details table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

leftAlignColumn

public static void leftAlignColumn(TableColumn column)
Modify the column's header to be aligned left.


resizeColumnsToPreferredWidth

public static void resizeColumnsToPreferredWidth(JTable table)
Try to resize the table's columns to get the preferred size of their contents.


writeAsExportString

public static StringBuilder writeAsExportString(TableModel model)
Creates and answers a comma separated string from the details table.



Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.