Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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

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:


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.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!