Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

increasing font size

843805Apr 2 2007 — edited Apr 6 2007
Hello all,

I have a JEditorPane and i wish to increase the font size of the html content that it holds so far i am at this point and it doesn't seem to work:
			  HTMLEditorKit size = new HTMLEditorKit();
			  String bigger = size.FONT_CHANGE_BIGGER;
			  
			  displayEditorPane.setEditorKit(size);
			  displayEditorPane.setEditorKitForContentType(bigger, size);
What is wrong with the above?
Is there any other way i can increase font size?

All help will be appreciated. Thank you. :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2007
Added on Apr 2 2007
11 comments
534 views