|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.util.swing.TableUtils
public class TableUtils
Utility methods for JTables.
| Constructor Summary | |
|---|---|
TableUtils()
|
|
| Method Summary | |
|---|---|
static void |
addSortDecorators(javax.swing.JTable table)
|
static int |
getPreferredColumnWidth(javax.swing.JTable table,
int column)
Returns the preferred column width based on the maximum preferred width of all cells in the column. |
static int |
getPreferredHeaderWidth(javax.swing.JTable table,
int column)
Returns the header preferred width for a specified column. |
static void |
resizeColumns(javax.swing.JTable table)
Resizes the columns of the table so that the maximum sized renderer will fit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableUtils()
| Method Detail |
|---|
public static void resizeColumns(javax.swing.JTable table)
public static int getPreferredHeaderWidth(javax.swing.JTable table,
int column)
public static int getPreferredColumnWidth(javax.swing.JTable table,
int column)
public static void addSortDecorators(javax.swing.JTable table)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||