Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stop jeditorpane page loading  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!