@Override
	public Object getColumnValueForRow(LabelHistory h, int columnIndex) {
		switch (columnNumbers[columnIndex]) {
			case ADDRESS_COL:
				return h.getAddress().toString();
			case ACTION_COL:
				return ACTION_NAMES[h.getActionID()];
			case LABEL_COL:
				return h.getLabelString();
			case USER_COL:
				return h.getUserName();
			case DATE_COL:
				return h.getModificationDate();
		}
		throw new ArrayIndexOutOfBoundsException("bad columnIndex");
	}
Table model for showing label history.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/label/LabelHistoryTableModel.java