[md-dev] getResource from within a module

Dave Wilson dmwilson at pobox.com
Thu Feb 23 02:30:28 EST 2006


Ok..so I've spent the last two evenings beating my head against the  
wall, with nothing to show for it all but a headache.  All I want to  
do is load a file to use as the text for a JEditorPane in the "About"  
section of my module.  However, I can't for the life of me figure out  
the path to use to access said resource.

I've got a separate class file, AboutPane, that extends JPanel.  And  
I've tried different variations of getClass().getResource() and  
getClassLoader().getResource() etc things, and I can't find any way  
to access my html file (about.html).

The html file is at the same level in the package/directory hirearchy  
as all the other class files, and I've confirmed that it's being  
packaged into the .mxt file with the ant build script.

So..I'm stuck.  Anyone have any ideas?

Thanks,
Dave 


More information about the moneydance-dev mailing list