> I've created a jar, which contains also description.html. Now in my
> main class I want to show it on the screen using JEditorPane. But to
> do that I need a path to that file (it works when I specify the whole
> path, like file:///c:/myFiles/.../description.html, but I want to make
> it more elastic and get it from jar archive).
> How can I get it??
....
URL url = getClass().getResource("description.html");
tp.setPage(url);
....
Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to
*
http://www.rgagnon.com/howto.html