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
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: 2531
    
    8

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


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
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: 2531
    
    8

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