|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.ui.util.JTableUtils
public class JTableUtils
Methods for working with JTables
| Constructor Summary | |
|---|---|
private |
JTableUtils()
Static methods only |
| Method Summary | |
|---|---|
static java.lang.String |
getColumnOrder(javax.swing.JTable table)
Returns the column order of a table in a formatted String. |
static java.lang.String |
getColumnWidths(javax.swing.JTable table)
Returns the column widths of a table in a formatted String. |
static void |
packGenericTable(javax.swing.JTable table)
Sizes the columns in a JTable |
static void |
packTable(javax.swing.JTable table)
|
static void |
setColumnOrder(javax.swing.JTable table,
java.lang.String positions)
Sets the column order of a table given a correctly formatted String. |
static void |
setColumnWidths(javax.swing.JTable table,
java.lang.String widths)
Sets the columns widths of a table given a correctly formatted String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private JTableUtils()
| Method Detail |
|---|
public static java.lang.String getColumnOrder(javax.swing.JTable table)
String.
table - The table to get the column order from
public static void setColumnOrder(javax.swing.JTable table,
java.lang.String positions)
String.
table - the table to set the column positionspositions - A string in the format "0 1 2 3"public static java.lang.String getColumnWidths(javax.swing.JTable table)
String.
table - The table to collect column widths from
public static void setColumnWidths(javax.swing.JTable table,
java.lang.String widths)
String.
If the provided String is null, the table columns are sized to default
values.
table - The table to set the columns widthswidths - A String in the format "34 56 56 56"public static void packGenericTable(javax.swing.JTable table)
table - The table to size the columns inpublic static void packTable(javax.swing.JTable table)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||