I'm just starting to learn how to work with a res folder in Java... res and src are both in the buildpath however when I try to use ResourceLoader from my programDriver in src, it isn't able to resolve into a type. How do you ''import'' from additional source folders?
This is the resource loader class, if at all relevant:
public class ResourceLoader {
private static ResourceLoader rl = new ResourceLoader();
public static Image getImage(String fileName)
{
return Toolkit.getDefaultToolkit().getImage(rl.getClass().getResource("images/"+fileName));
}
}