static void initializeTableColumns(GTable table, GDynamicColumnTableModel<?, ?> model) {
		TableColumnModel colModel = table.getColumnModel();

		FontMetrics fm = table.getTableHeader().getFontMetrics(table.getTableHeader().getFont());
		int padding = fm.stringWidth("WW"); // w.a.g. for the left+right padding on the header column component

		for (int colIndex = 0; colIndex < model.getColumnCount(); colIndex++) {
			DynamicTableColumn<?, ?, ?> dtableCol = model.getColumn(colIndex);
			if (dtableCol instanceof TableColumnInitializer colInitializer) {
				TableColumn tableCol = colModel.getColumn(colIndex);
				colInitializer.initializeTableColumn(tableCol, fm, padding);
			}
		}
	}
Best called during {@link DialogComponentProvider#dialogShown} or 
{@link ComponentProvider#componentShown} 

@param table table component 
@param model table model
Ghidra/Features/PDB/src/main/java/pdb/symbolserver/ui/TableColumnInitializer.java