private int calculatePreferredRowHeight() {
		if (userDefinedRowHeight != 16) { // default size
			return userDefinedRowHeight; // prefer user-defined settings
		}

		if (getColumnCount() == 0) {
			return userDefinedRowHeight; // no columns yet defined
		}

		TableCellRenderer defaultRenderer = getDefaultRenderer(String.class);
		try {
			Component component =
				defaultRenderer.getTableCellRendererComponent(this, "Ghidra", false, false, 0, 0);
			Dimension preferredSize = component.getPreferredSize();
			return preferredSize.height + 3; // What is this fudge?
		}
		catch (Throwable t) {
			// some renderers can't handle being asked to render with dummy data; use default value
			return userDefinedRowHeight;
		}
	}
Enables or disables auto-edit.  When enabled, the user can start typing to trigger an
edit of an editable table cell.

@param allowAutoEdit true for auto-editing
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTable.java