aspose 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 Java 8 in Action this week in the Java 8 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: 1977
    
    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: 1977
    
    7

Don't know man. Maybe printer default font is arial black?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JeditorPane Text
 
Similar Threads
JeditorPane Font
printing rtf from jEditorPane
Problem in Font
how to change the font-family in XSLT file
JEditorPane problem displaying non-English text in 1.4 (Linux)