• Post Reply Bookmark Topic Watch Topic
  • New Topic

Large HTML files and JEditorpane

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

I'm using jeditorpane to display a large HTML file (large as in 1MB) and it takes absolutely ages to load.

Is there a best practice for getting it to load without having the user look at a blank screen for 5 minutes?

PlainLanguageReport report = new PlainLanguageReport(_design);

txtPlainLanguage.setText("");

// This bit gets the HTML (takes about 2 seconds to build the report - 5 minutes to show)
txtPlainLanguage.setText(report.getHTML(true));
txtPlainLanguage.setCaretPosition(0);

Any help is much appreciated.

Cheers,

Steve
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!