Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Large HTML files and JEditorpane  RSS feed

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