Forums Register Login

Load a file from disk into JEditorPane or JTextPane etc

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
OK Nevermind. I've got it.

Grow your own food... or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3468 times.
Similar Threads
What components should I use for building a Java WYSIWYG HTML editor
Does JTextPane have document size restrictions?
Reading HTML document into JEditorPane
Question about JTextComponent Heirarchy
Display problem in JFrame
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:38:47.