File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Load a file from disk into JEditorPane or JTextPane etc 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 » Java in General
Bookmark "Load a file from disk into JEditorPane or JTextPane etc" Watch "Load a file from disk into JEditorPane or JTextPane etc" New topic
Author

Load a file from disk into JEditorPane or JTextPane etc

Darrell Morello
Ranch Hand

Joined: Apr 28, 2005
Posts: 38
Is it possible a file from disk directly into JEditorPane or JTextPane or JTextArea? I mean without having to read the file, just by providing the path to the file. What I really want to do is load an HTML file. With images and stuff.

Thanks
[ May 28, 2005: Message edited by: Darrell Morello ]
Darrell Morello
Ranch Hand

Joined: Apr 28, 2005
Posts: 38
OK Nevermind. I've got it.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load a file from disk into JEditorPane or JTextPane etc
 
Similar Threads
Question about JTextComponent Heirarchy
Display problem in JFrame
Does JTextPane have document size restrictions?
What components should I use for building a Java WYSIWYG HTML editor
Reading HTML document into JEditorPane