messageField = CommitMessage.createCommitTextEditor(project, false);
messageField.setBorder(BorderFactory.createEmptyBorder());
JPanel messagePanel = new JPanel(new BorderLayout());
messagePanel.add(messageField, BorderLayout.CENTER);
messagePanel.add(new JLabel("Write your comment here. You can use a simple markdown-like syntax."), BorderLayout.SOUTH);
tabbedPane.addTab("Write", AllIcons.Actions.Edit, messagePanel);
final JEditorPane previewEditorPane = new JEditorPane(UIUtil.HTML_MIME, "");
previewEditorPane.setEditable(false);
tabbedPane.addTab("Preview", AllIcons.Actions.Preview, previewEditorPane);