Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JEditorPane hangs with a BIG html text

Reply
Thread Tools

JEditorPane hangs with a BIG html text

 
 
Guest
Posts: n/a
 
      09-19-2004
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+


 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      09-19-2004
On Sun, 19 Sep 2004 11:53:58 +0300, <- Chameleon -> wrote:

> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GIDS 2009 Java:: Save Big, Win Big, Learn Big: Act Before Dec 29 2008 Shaguf Python 0 12-24-2008 07:35 AM
[Swing] which is cheapest.. RTF or HTML rich text in JEditorPane? softwarepearls_com Java 1 08-07-2008 06:29 PM
JEditorPane (text/html) - determining position of caret in HTML source Robin Java 0 05-12-2005 03:48 PM
Get selected text from JEditorpane as HTML Gerrit Hulleman Java 1 07-01-2004 02:34 PM
Clear hangs up - & hangs up - & hangs up Sue Bilstein NZ Computing 26 03-07-2004 01:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57