wie kann ich mit einem jEditorPane einen String als HTML anzeigen?
ich habs mit setText(String g) probiert aber irgendwie funktioniert es nicht so richtig
aber setPage funktioniert
es kommt ein kurzer ton aber angezeigt wird nix
das ist der text den ich als html haben will:
vieleicht liegts am java script aber wenn ich das gleiche file auf der festplatte speicher und dann als url lade funktioniert es
ich habs mit setText(String g) probiert aber irgendwie funktioniert es nicht so richtig
aber setPage funktioniert
es kommt ein kurzer ton aber angezeigt wird nix
das ist der text den ich als html haben will:
Code:
<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style><!--
body,td,a,p,.h{font-family:arial,sans-serif}
.h{font-size:20px}
.q{color:#00c}
--></style>
<script>
<!--
function sf(){document.f.q.focus();}
// -->
</script>
</head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onLoad=sf() topmargin=3 marginheight=3><center><table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td align=right nowrap><font size=-1>[url="/url?sa=p&pref=ig&pval=3&q=http://www.google.de/ig%3Fhl%3Dde"]Personalisierte Startseite[/url]&|&[url="https://www.google.com/accounts/Login?continue=http://www.google.de/index.html&hl=de"]Anmelden[/url]</font></td></tr><tr height=4><td><img alt="" width=1 height=1></td></tr></table>[img]/intl/de_de/images/logo.gif[/img]
<form action=/search name=f><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1>[b]Web[/b]&&&&[url="/imghp?hl=de&ie=UTF-8&tab=wi"]Bilder[/url]&&&&[url="http://groups.google.de/grphp?hl=de&ie=UTF-8&tab=wg"]Groups[/url]&&&&[url="http://news.google.de/nwshp?hl=de&ie=UTF-8&tab=wn"]News[/url]&&&&[url="http://froogle.google.de/frghp?hl=de&ie=UTF-8&tab=wf"]Froogle[/url]&&&&[b][url="/intl/de/options/"]Mehr&&[/url][/b]</font></td></tr></table><table cellspacing=0 cellpadding=0><tr><td width=25%>&</td><td align=center><input type=hidden name=hl value=de><input type=hidden name=ie value="ISO-8859-1"><input maxlength=2048 size=55 name=q value="" title="Google-Suche">
<input type=submit value="Google-Suche" name=btnG><input type=submit value="Auf gut Glück!" name=btnI></td><td valign=top nowrap width=25%><font size=-2>&&<a href=/advanced_search?hl=de>Erweiterte Suche</a>
&&[url="/preferences?hl=de>Einstellungen</a>
&&<a"]Sprachtools[/url]</font></td></tr><tr><td colspan=3 align=center><font size=-1>Suche: <input id=all type=radio name=meta value="" checked><label for=all> Das Web </label><input id=lgr type=radio name=meta value="lr=lang_de" ><label for=lgr> Seiten auf Deutsch </label><input id=cty type=radio name=meta value="cr=countryDE" ><label for=cty> Seiten aus Deutschland </label></font></td></tr></table></form>
<font size=-1>[url="/intl/de/ads/>Werbung</a>"]Unternehmensangebote[/url] - [url="/intl/de/about.html>Über"] - <a href=http://www.google.com/ncr>Google.com in English[/url]</font>
<font size=-2>&2006 Google</font></p></center></body></html>