title: JTextPane inserting large text problem
body: <p>I've a problem: firstly I load some large text from file. After that I want to display it in my JTextPane. For inserting text into JTextPane I use:</p>
  
  <pre><code> SwingUtilities.invokeLater(new Runnable()
   {
  
   public void run()
   {
     textPane.setText(someLargeString);
    } 
  });
  </code></pre>
  
  <p>But while my text inserts into JTextPane all UI is frozen.</p>
  
  <p>Is there any ability to insert large String into JTextPane but without UI freezing?</p>
  
  <p>Thanks</p>
  
  <p>P.S.
  Process of loading data is in another thread. But after data is loaded I need to put it into JTextPane. So I'm invoking setting text in swing. But my UI freeze. Why?</p>