Commit b587b6d6 authored by Skylot's avatar Skylot

fix(gui): use correct font and style for certificate panel

parent bc3af8e6
......@@ -3,21 +3,26 @@ package jadx.gui.ui;
import javax.swing.*;
import java.awt.*;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import jadx.gui.treemodel.JNode;
public class CertificatePanel extends ContentPanel {
CertificatePanel(TabbedPane panel, JNode jnode) {
super(panel, jnode);
setLayout(new BorderLayout());
JTextArea textArea = new JTextArea(jnode.getContent());
textArea.setFont(textArea.getFont().deriveFont(12f)); // will only change size to 12pt
JScrollPane sp = new JScrollPane(textArea);
add(sp);
}
public final class CertificatePanel extends ContentPanel {
private static final long serialVersionUID = 8566591625905036877L;
@Override
public void loadSettings() {
private final RSyntaxTextArea textArea;
CertificatePanel(TabbedPane panel, JNode jnode) {
super(panel, jnode);
setLayout(new BorderLayout());
textArea = new RSyntaxTextArea(jnode.getContent());
loadSettings();
JScrollPane sp = new JScrollPane(textArea);
add(sp);
}
}
@Override
public void loadSettings() {
CodeArea.loadCommonSettings(getTabbedPane().getMainWindow(), textArea);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment