aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to set default font JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to set default font JEditorPane" Watch "How to set default font JEditorPane" New topic
Author

How to set default font JEditorPane

Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

How to set default font JEditorPane with html editor kit installed??
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2232
    
  47
The font used will be taken from the HTML or associated style sheet.

A quick google found this article on how to set it to the system font:
http://explodingpixels.wordpress.com/2008/10/28/make-jeditorpane-use-the-system-font/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set default font JEditorPane