package jadx.gui.ui;

import javax.swing.*;
import java.awt.*;

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);
    }

    @Override
    public void loadSettings() {


    }
}

@@ -57,16 +57,69 @@
 awt.*;%0A%0A
+import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;%0A%0A
 import j
@@ -151,16 +151,22 @@
 %0Apublic 
+final 
 class Ce
@@ -203,20 +203,128 @@
 Panel %7B%0A
-    
+%09private static final long serialVersionUID = 8566591625905036877L;%0A%0A%09private final RSyntaxTextArea textArea;%0A%0A%09
 Certific
@@ -365,24 +365,18 @@
 node) %7B%0A
-        
+%09%09
 super(pa
@@ -388,24 +388,18 @@
 jnode);%0A
-        
+%09%09
 setLayou
@@ -425,26 +425,10 @@
 ));%0A
-        JTextArea 
+%09%09
 text
@@ -438,17 +438,23 @@
 a = new 
-J
+RSyntax
 TextArea
@@ -479,111 +479,28 @@
 ));%0A
-        textArea.setFont(textArea.getFont().deriveFont(12f)); // will only change size to 12pt%0A        
+%09%09loadSettings();%0A%09%09
 JScr
@@ -543,16 +543,10 @@
 a);%0A
-        
+%09%09
 add(
@@ -554,19 +554,13 @@
 p);%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Ove
@@ -565,20 +565,17 @@
 verride%0A
-    
+%09
 public v
@@ -599,14 +599,83 @@
 ) %7B%0A
-%0A%0A    
+%09%09CodeArea.loadCommonSettings(getTabbedPane().getMainWindow(), textArea);%0A%09
 %7D%0A%7D%0A

use correct font and style for certificate panel