Skip to content

Commit

Permalink
putClientProperty on Swing components that utilise HTML rendering set…
Browse files Browse the repository at this point in the history
… to null
  • Loading branch information
Hannah-PortSwigger committed Feb 3, 2022
1 parent 01bc703 commit f8c740c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/nccgroup/loggerplusplus/help/HelpPanel.java
Expand Up @@ -54,6 +54,7 @@ private void setup() {


JTextPane overviewTitle = new JTextPane();
overviewTitle.putClientProperty("html.disable", null);
overviewTitle.setContentType("text/html");
overviewTitle.setDocument(doc);
overviewTitle.setEditable(false);
Expand All @@ -64,6 +65,7 @@ private void setup() {
"filters from various fields and row coloring to highlight interesting entries which match a specific filter.</body>");

JTextPane overviewPane = new JTextPane();
overviewPane.putClientProperty("html.disable", null);
overviewPane.setContentType("text/html");
overviewPane.setEditable(false);
doc = (HTMLDocument) editorKit.createDefaultDocument();
Expand Down Expand Up @@ -154,6 +156,7 @@ private void setup() {
});

JTextPane fieldTitle = new JTextPane();
fieldTitle.putClientProperty("html.disable", null);
fieldTitle.setContentType("text/html");
fieldTitle.setEditable(false);
doc = (HTMLDocument) editorKit.createDefaultDocument();
Expand All @@ -163,6 +166,7 @@ private void setup() {
"A number of fields are available to use from the requests within your filters. These are listed below.<body>");

JTextPane fieldPane = new JTextPane();
fieldPane.putClientProperty("html.disable", null);
fieldPane.setContentType("text/html");
fieldPane.setEditable(false);
doc = (HTMLDocument) editorKit.createDefaultDocument();
Expand Down

0 comments on commit f8c740c

Please sign in to comment.