JEditorPane does not load images from JAR files if the file that
references it contains a content attribute in a <META> tag. For
example:
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Two interesting notes:
- If the image is first loaded and cached by a file that doesn't
contain the <META> tag, it will subsequently load in a file that
DOES contain the <META> tag.
- The same image is loaded correctly when the referencing file is
loaded from the file system (as opposed to a JAR file).
I've attached a very simple JavaHelp HelpSet that demonstrates
the problem and would be happy to show it to whoever is lucky
enough to work on this.
Larry
references it contains a content attribute in a <META> tag. For
example:
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Two interesting notes:
- If the image is first loaded and cached by a file that doesn't
contain the <META> tag, it will subsequently load in a file that
DOES contain the <META> tag.
- The same image is loaded correctly when the referencing file is
loaded from the file system (as opposed to a JAR file).
I've attached a very simple JavaHelp HelpSet that demonstrates
the problem and would be happy to show it to whoever is lucky
enough to work on this.
Larry
- duplicates
-
JDK-4214785 Plug-in doesn't load images from JAR files
-
- Closed
-