private void create() {
		textPane = new JTextPane();
		doc = textPane.getStyledDocument();
		add(textPane, BorderLayout.CENTER);
		textPane.setEditable(false);

		Font monospaced = Gui.getFont("font.monospaced");
		Font bold = Gui.getFont("font.standard.bold");

		pathAttrs = new GAttributes(bold, MergeConstants.CONFLICT_COLOR);
		nameAttrs = new GAttributes(bold);
		sourceAttrs = new GAttributes(bold, SOURCE_COLOR);
		offsetAttrs = new GAttributes(monospaced, Palette.BLACK);
		contentAttrs = new GAttributes(monospaced, Palette.BLUE);
		fieldNameAttrs = new GAttributes(monospaced, Palette.MAGENTA);
		commentAttrs = new GAttributes(monospaced, Palette.LIME);
		deletedAttrs = new GAttributes(bold, Palette.RED);

		setDataType(dataType);
	}
Panel to show the contents of a Data Type.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/datatypes/DataTypePanel.java