Safer way to set font size

This commit is contained in:
Nico Mexis 2021-07-21 12:33:50 +02:00
parent a291fec941
commit 37343ec4e0
No known key found for this signature in database
GPG Key ID: 27D6E17CE092AB78
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class JHexEditor extends JPanel implements FocusListener, AdjustmentListe
byte[] buff;
public int cursor;
protected static Font font = new Font("Monospaced", Font.PLAIN, 12);
protected static Font font = new Font(Font.MONOSPACED, Font.PLAIN, 12);
protected int border = 2;
public boolean DEBUG = false;
private final JScrollBar sb;