wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 1950
    
  28
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
 
Similar Threads
JeditorPane Font
HELP with ScrollPanes!
How to set the font of message dialog?
swings (JEditorPane)
MenuItem font setting