File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JeditorPane Text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JeditorPane Text" Watch "JeditorPane Text" New topic
Author

JeditorPane Text

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
If I load file ascii file in the JeditorPane wat will happen. whether the JEditorPane will load it as it is or search the supporting font family. If the supporting font family is not available then what will happen. Please assist me
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1963
    
    7

It will load "as is" using Java internal font (whatever that is).


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
But I tried to load a file with times new roman text and printing the Jeditorpane. But its printing in arial black. How come this

because of printer ?
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1963
    
    7

Don't know man. Maybe printer default font is arial black?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JeditorPane Text
 
Similar Threads
JEditorPane problem displaying non-English text in 1.4 (Linux)
JeditorPane Font
how to change the font-family in XSLT file
printing rtf from jEditorPane
Problem in Font