Commit e8d9c511 authored by Mart Lubbers's avatar Mart Lubbers

Use a different way for fetching resources that works on java 9 as well

parent 53b2a5fd
......@@ -34,7 +34,7 @@ public class HelpFromProp
private static Properties getProps( String nm )
{
URL url = nm.getClass().getResource( "/Help/" + nm + ".prop" ) ;
URL url = HelpFromProp.class.getResource( "/Help/" + nm + ".prop" ) ;
Properties props = new Properties() ;
try
{
......
......@@ -32,7 +32,7 @@ public class Images
private static ImageIcon getImage( String nm )
{
return new ImageIcon( nm.getClass().getResource( "/Images/" + nm + ".gif" ) ) ;
return new ImageIcon( Images.class.getResource( "/Images/" + nm + ".gif" ) ) ;
}
static
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment