Skip to content

Commit e162d10

Browse files
committed
fix #106: monospace font in stack console log
1 parent 9f39818 commit e162d10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/openstreetmap/josm/plugins/scripting/ui/ScriptErrorViewer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ protected JPanel buildOptionsPanel() {
9191
protected JComponent buildViewerPanel() {
9292
paneOutput = new JTextPane();
9393
paneOutput.setEditable(false);
94+
final var fontSize = paneOutput.getFont().getSize();
95+
paneOutput.setFont(new Font(Font.MONOSPACED, Font.PLAIN, fontSize));
9496
final var editorScrollPane = new JScrollPane(paneOutput);
9597
editorScrollPane.setVerticalScrollBarPolicy(
9698
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);

0 commit comments

Comments
 (0)