{"id":27,"date":"2003-11-12T17:05:20","date_gmt":"2003-11-12T22:05:20","guid":{"rendered":"http:\/\/wp.javatechniques.com\/blog\/2003\/11\/12\/setting-jtextpane-font-and-color\/"},"modified":"2007-03-18T17:30:09","modified_gmt":"2007-03-18T22:30:09","slug":"setting-jtextpane-font-and-color","status":"publish","type":"post","link":"http:\/\/javatechniques.com\/blog\/2003\/11\/12\/setting-jtextpane-font-and-color\/","title":{"rendered":"Setting JTextPane Font and Color"},"content":{"rendered":"<p>Swing&#8217;s <CODE>JTextPane<\/CODE> supports styled text, embedded images and components, and other features not available in the AWT <CODE>TextArea<\/CODE>. However, basic operations like setting the font and color for the text are somewhat more complicated with <CODE>JTextPane<\/CODE> than with <CODE>TextArea<\/CODE> and other simpler text components. &#8220;<A HREF=\"http:\/\/javatechniques.com\/public\/java\/docs\/basics\/jtextpane-font.html\" onMouseOver=\"window.status='Last modified 7\/15\/06 11:07 PM by isenhour (http:\/\/javatechniques.com\/public\/java\/docs\/basics\/jtextpane-font.html)'; return true;\">Setting JTextPane Font and Color<\/A>&#8221; illustrates the use of character attributes for setting these text properties.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swing&#8217;s JTextPane supports styled text, embedded images and components, and other features not available in the AWT TextArea. However, basic operations like setting the font and color for the text are somewhat more complicated with JTextPane than with TextArea and other simpler text components. &#8220;Setting JTextPane Font and Color&#8221; illustrates the use of character attributes &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/javatechniques.com\/blog\/2003\/11\/12\/setting-jtextpane-font-and-color\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting JTextPane Font and Color&#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],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-gui","entry"],"_links":{"self":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/posts\/27","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=27"}],"version-history":[{"count":0,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/javatechniques.com\/blog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}