Skip to content

Commit

Permalink
fix(gui): use correct font and style for certificate panel
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Sep 8, 2018
1 parent bc3af8e commit b587b6d
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions jadx-gui/src/main/java/jadx/gui/ui/CertificatePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@
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);
}
}

0 comments on commit b587b6d

Please sign in to comment.