[md-dev] stuck on resources...
Dave Wilson
dmwilson at pobox.com
Mon Feb 27 10:22:35 EST 2006
Ok..been beating on this for near a week. I thought the
getResourceAsStream would do the trick, but no luck. The short of it
is this, I want to use a JEditorPane to show a simple .html file that
I want to use for some basica about/documentation information in this
plugin I'm developing. For the life of me I can't get any method to
read the file and return anything but null/throw an IO exception.
The file in question is on the same level as all the other class
files in the .mxt file. There is no problem with changing the plugin
logo in the Main class using the method there, but if I try to even
load the .html file at that point, I still don't have any luck.
I'm sure all this is due to my lack of understanding regarding
classloaders and resource paths and all this, but as an exercise I
don't have any problems when trying to do this kind of thing in a
standalone java program.
So to any and all, help please! Any guidlines, gotchas, etc I should
be looking for?
Thanks,
Dave
More information about the moneydance-dev
mailing list