|
Setting the column width |
Top Previous Next |
You can use the constructor:
JTableRowHeader(TableColumnModel columnModel, int columnWidth);
, in order to specify the column width.
Alternatively, you can use the method:
public void setColumnWidth(int columnWidth);
Finally, you can retrieve the current column width with:
public int getColumnWidth();