View Full Version : Problem with JTextPane&Document

10-28-2004, 03:59 PM
As I would like to show a number of text lines on the screen, I choose JTexPane and Document to do it like this:

JTextPane content = new JTextPane();
Document doc = content.getDocument();


Since a number of text lines are inserted in "doc", I noticed that it caused my program worked much slowwer.

Do you have any other ways to solve this problem?

Thank you

Roy Sinclair
10-28-2004, 05:49 PM
I think you need to provide more context to your post. Small things like what language you're using, the framework you're using and other vital information that'll allow people to decide whether their knowledge will be relevant to your question or not.

(BTW: I can tell already that I can't help you with this but I thought it might be important for you to know that more information is better).