private JPanel createPanel() {

		JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());

		JPanel p = new JPanel();
		commentsField = new JTextArea(10, 50);
		commentsField.setLineWrap(true);
		commentsField.setWrapStyleWord(true);
		JScrollPane scrollP = new JScrollPane(commentsField);

		p.add(scrollP);
		panel.add(scrollP, BorderLayout.CENTER);

		return panel;
	}
Create the panel for the dialog.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/CommentDialog.java