public class PTableCellRendererUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setAlignment(JTable table,
int col,
int alignment)
Sets a column's alignment to
alighment supplied. |
static void |
setAlignmentToRight(JTable table,
int col)
Sets a column's alignment to SwingConstants.RIGHT.
|
static void |
setAlignmentToRight(JTable table,
int[] col)
Sets a list of columns' alignment to SwingConstants.RIGHT.
|
public static void setAlignmentToRight(JTable table, int col)
table - will be a PIASpecSpreadSheet in most casescol - the column numberpublic static void setAlignmentToRight(JTable table, int[] col)
table - will be a PIASpecSpreadSheet in most casescol - the column number arraypublic static void setAlignment(JTable table, int col, int alignment)
alighment supplied.table - will be a PIASpecSpreadSheet in most casescol - the column numberalignment - a SwingConstants, LEFT, RIGHT, or CENTERCopyright © 2003, 2023, Oracle and/or its affiliates.