}
private void createTable() {
segmentModel = new SegmentTableModel(document);
segmentModel.addUndoableEditListener(this);
segmentTable = new SegmentTable(segmentModel, isFixedWidth);
// Listen to changes in the displayed table so that the page will be flagged as dirty:
segmentTable.addPropertyChangeListener(DocDefTable.TABLE_CONTENT_PROPERTY, this);
}