JEditorPane hangs with a BIG html text

G

Guest

In my app, I have a "JEditorPane" + "JScrollPane".
When I run "setText" with a "String" about 700000 chars long, my app hangs
for about 10 minutes!
"String" has html contents.

What's wrong?
I run WinXP, latest JVM in an AthlonXP 1600+
 
A

Andrew Thompson

In my app, I have a ..
a)
"JEditorPane" .. ...
When I run "setText" with a "String" about 700000 chars long, my app hangs
for about 10 minutes! ...
What's wrong?

See a). JEditorPanes are notorious.
They are fine for small amounts of HTML
over which you have complete control,
but little else.

I suggest you write a temporary file
and call BrowserLauncher.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top