Fix FileViewer not reading font size from settings
This commit is contained in:
parent
b9bf92adb2
commit
09b120ee89
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Font;
|
||||
import java.awt.image.BufferedImage;
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JButton;
|
||||
|
@ -125,6 +126,7 @@ public class FileViewer extends ResourceViewer
|
|||
textArea.setCodeFoldingEnabled(true);
|
||||
textArea.setSyntaxEditingStyle(SyntaxLanguage.detectLanguage(nameLowerCase, contentsAsString).getSyntaxConstant());
|
||||
textArea.setText(contentsAsString);
|
||||
textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int) BytecodeViewer.viewer.fontSpinner.getValue()));
|
||||
textArea.setCaretPosition(0);
|
||||
|
||||
mainPanel.add(textArea.getScrollPane());
|
||||
|
|
Loading…
Reference in a new issue