aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java
diff options
context:
space:
mode:
authorunknown <james.jenour@protonmail.com>2020-06-14 21:51:38 +1000
committerunknown <james.jenour@protonmail.com>2020-06-14 21:51:38 +1000
commit2e41811a26d3abf205506ba9ad54c0d4fe52bebd (patch)
tree07fac376ff4a790dae069f911ae0da382a11b3bd /src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java
parentde97f55968d183cc7d76aad87e3b27d382bfdbc9 (diff)
downloadnotenoughupdates-2e41811a26d3abf205506ba9ad54c0d4fe52bebd.tar.gz
notenoughupdates-2e41811a26d3abf205506ba9ad54c0d4fe52bebd.tar.bz2
notenoughupdates-2e41811a26d3abf205506ba9ad54c0d4fe52bebd.zip
BETA-1.6
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java
deleted file mode 100644
index 7f02baa7..00000000
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/SynchronousHTMLEditorKit.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package io.github.moulberry.notenoughupdates.util;
-
-import javax.swing.text.Document;
-import javax.swing.text.Element;
-import javax.swing.text.View;
-import javax.swing.text.ViewFactory;
-import javax.swing.text.html.HTMLDocument;
-import javax.swing.text.html.HTMLEditorKit;
-import javax.swing.text.html.ImageView;
-import javax.swing.text.html.HTMLEditorKit.HTMLFactory;
-
-public class SynchronousHTMLEditorKit extends HTMLEditorKit {
- public SynchronousHTMLEditorKit() {
- }
-
- public Document createDefaultDocument() {
- HTMLDocument doc = (HTMLDocument)super.createDefaultDocument();
- doc.setAsynchronousLoadPriority(-1);
- return doc;
- }
-
- public ViewFactory getViewFactory() {
- return new HTMLFactory() {
- public View create(Element elem) {
- View view = super.create(elem);
- if (view instanceof ImageView) {
- //((ImageView)view).setLoadsSynchronously(true);
- }
-
- return view;
- }
- };
- }
-
-
-}