File tree Expand file tree Collapse file tree
src/main/java/com/junichi11/netbeans/modules/github/issues/issue/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343
4444import com .junichi11 .netbeans .modules .github .issues .utils .DateUtils ;
4545import com .junichi11 .netbeans .modules .github .issues .utils .UiUtils ;
46+ import java .awt .Font ;
4647import java .util .Date ;
4748import org .eclipse .egit .github .core .Comment ;
4849import org .openide .util .NbBundle ;
@@ -77,6 +78,10 @@ public CommentPanel(Comment comment) {
7778 }
7879
7980 private void init () {
81+ // set monospaced font
82+ Font contentFont = contentTextPane .getFont ();
83+ contentTextPane .setFont (new Font (Font .MONOSPACED , contentFont .getStyle (), contentFont .getSize ()));
84+
8085 previewLinkButton .setText (Bundle .CommentPanel_previewLinkButton_title_html ());
8186 }
8287
Original file line number Diff line number Diff line change 4444import com .junichi11 .netbeans .modules .github .issues .GitHubIssues ;
4545import java .awt .Component ;
4646import java .awt .Dialog ;
47+ import java .awt .Font ;
4748import org .openide .DialogDescriptor ;
4849import org .openide .DialogDisplayer ;
4950import org .pegdown .PegDownProcessor ;
@@ -61,6 +62,13 @@ public class CommentTabbedPanel extends javax.swing.JPanel {
6162 */
6263 public CommentTabbedPanel () {
6364 initComponents ();
65+ init ();
66+ }
67+
68+ private void init () {
69+ // set monospaced font
70+ Font commentFont = commentWriteTextArea .getFont ();
71+ commentWriteTextArea .setFont (new Font (Font .MONOSPACED , commentFont .getStyle (), commentFont .getSize ()));
6472 }
6573
6674 public String getText () {
You can’t perform that action at this time.
0 commit comments