...

View Full Version : Problem with JTextPane&Document



pumipat
10-28-2004, 02: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();

doc.insertString("String");

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, 04: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).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum