This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 2169
    
  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
 
Similar Threads
MenuItem font setting
HELP with ScrollPanes!
swings (JEditorPane)
JeditorPane Font
How to set the font of message dialog?