0
0
0xE02013-02-21 18:15:48
Java
0xE0, 2013-02-21 18:15:48

Swing. HTML display?

I'll warn you right now, I'm not a real welder. I try, I understand, I ask questions, including here. If you poke your nose, I will be grateful.
The task is to display on an HTML form.
I get the html itself by reading letters using the library code.google.com/p/java-libpst I
use JEditorPane
Simple HTML is displayed, but the one that libpst returns to me does not want to.
An example of HTML that is not displayed but is visible in any browser.

<html> 
<head>
<meta http-equiv=Content-Type content="text/html; charset=koi8-r">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
  {font-family:Calibri;
  panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
  {font-family:Tahoma;
  panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
  {margin:0cm;
  margin-bottom:.0001pt;
  font-size:11.0pt;
  font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
  {mso-style-priority:99;
  color:blue;
  text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
  {mso-style-priority:99;
  color:purple;
  text-decoration:underline;}
span.EmailStyle17
  {mso-style-type:personal;
  font-family:"Calibri","sans-serif";
  color:windowtext;}
span.EmailStyle18
  {mso-style-type:personal;
  font-family:"Calibri","sans-serif";
  color:#1F497D;}
span.EmailStyle19
  {mso-style-type:personal-reply;
  font-family:"Calibri","sans-serif";
  color:#1F497D;}
.MsoChpDefault
  {mso-style-type:export-only;
  font-size:10.0pt;}
@page Section1
  {size:612.0pt 792.0pt;
  margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
  {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=RU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Еще конфигуратор нужен.<o:p></o:p></span></p>

</div>

</body>

</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
barker, 2013-02-21
@0xE0

Because the swing html parser is not a complete browser. He does not support most of the tags, and you fuss him with some complex css.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question