pumipat
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();
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
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