JEditorPane append and redraw proplem :)

Hi~ I cannot speak English well. sorry :)

I'm making html displayer that scrape particular part of html in certain URL. one time operation makes many URL that should be scraped.

so it takes long time to complete .

so I want to append html message in one URL to JEditorPane and I want to see result promptly.

I can append new html message that I scraped to existing html messege .

but JEditorPane doesn't show me the result until append procedure

is end.

Could you understand my question? :)

To write question in English is very hard to me ..

It takes 30 minute ;; OTL..

[634 byte] By [jenuuuuka] at [2007-11-27 6:12:08]
# 1

I'm not sure what you mean by an HTML message, but if you are trying to color certain pieces of text a different color then I recommend you use a JTextPane for displaying the text as it is much easier to use. Simple example:

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=342068

For a long running task you need to use Threads so you you don't block the GUI event Thread. This posting gives a simple example:

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=621226

camickra at 2007-7-12 17:19:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank you very much :)
jenuuuuka at 2007-7-12 17:19:05 > top of Java-index,Desktop,Core GUI APIs...