Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stop jeditorpane page loading

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm not really all that good at threads and have a question about jeditorpane.

From what I understand, if I load a page using setPage, it works asynchronously:

txtPlainLanguage.setPage(reportFile.toURL());

The trouble is: How do I stop the page loading before it's finished?

I've tried putting the above command in a thread and interrupting the thread. I've tried calling txtPlainLanguage.wait(), but I can't work out how to set up the sychronized bit properly so the whole application doesn't stop.

Any help is greatly appreciated.

Cheers,

Steve
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!