{"id":32,"date":"2004-01-04T17:08:01","date_gmt":"2004-01-04T22:08:01","guid":{"rendered":"http:\/\/wp.javatechniques.com\/blog\/2004\/01\/04\/batch-text-inserts-with-jtextpane\/"},"modified":"2007-03-18T17:44:18","modified_gmt":"2007-03-18T22:44:18","slug":"batch-text-inserts-with-jtextpane","status":"publish","type":"post","link":"http:\/\/javatechniques.com\/blog\/2004\/01\/04\/batch-text-inserts-with-jtextpane\/","title":{"rendered":"Batch Text Inserts with JTextPane"},"content":{"rendered":"<p>Part II of &#8220;<A HREF=\"http:\/\/javatechniques.com\/public\/java\/docs\/gui\/jtextpane-speed-part2.html\" onMouseOver=\"window.status='Last modified 1\/3\/04 2:45 PM by isenhour (http:\/\/javatechniques.com\/public\/java\/docs\/gui\/jtextpane-speed-part2.html)'; return true;\">Faster JTextPane Text Insertion<\/A>&#8221; describes another technique for overcoming some of <CODE>JTextPane<\/CODE>&#8216;s performance limitations when initiatializing large documents with complex styles. The <CODE>ElementSpec<\/CODE> class, defined as part of <CODE>DefaultStyledDocument<\/CODE>, 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part II of &#8220;Faster JTextPane Text Insertion&#8221; describes another technique for overcoming some of JTextPane&#8216;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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/javatechniques.com\/blog\/2004\/01\/04\/batch-text-inserts-with-jtextpane\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Batch Text Inserts with JTextPane&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-gui","category-optimization","entry"],"_links":{"self":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}