Batch Text Inserts with JTextPane

Part II of “Faster JTextPane Text Insertion” describes another technique for overcoming some of JTextPane’s performance limitations when initiatializing large documents with complex styles. The ElementSpec class, defined as part of DefaultStyledDocument, provides a way to batch updates and apply them in bulk. Depending on size and complexity of the document, the speed boost can be significant.

4 January 2004 | GUI, Optimization | Comments

Comments are closed.


Categories



Pages

Archives

Meta


Copyright 2003-2007 - Philip Isenhour