ride public void configureTableColumn(TableModel model, TableColumnExt columnExt) { super.configureTableColumn(model, columnExt); String title = columnExt.getTitle(); title = title.substring(0,1).toUpperCase() + title.substring(1).toLowerCase(); columnExt.setTitle(title); } }; By default a single instance is shared across all tables of an application. This instance can be replaced by a custom implementation, preferably "early" in the application's lifetime.
ColumnFactory.setInstance(new MyColumnFactory());
Alternatively, any instance of
JXTable
can be configured individually with its own
ColumnFactory
.
JXTable table = new JXTable(); table.setColumnFactory(new MyColumnFactory()); table.setModel(myTableModel);
@see org.jdesktop.swingx.JXTable#setColumnFactory(ColumnFactory)
@author Jeanette Winzenburg
@author M.Hillary (the pack code)