Is there any way of loading images, not from the ./images folder? (as folder structures in the image folder don't work when exporting to a jar file
// Thanks to MKYong at https://www.mkyong.com/java/how-to-detect-os-in-java-systemgetpropertyosname/ for the code that I based this on
class OSValidator {
private static String OS;
public static String getOSSymbol (){
if (!isWindows()){
return "/";
}
return "\\";
}
public static boolean isMac() {
OS = System.getProperty("os.name").toLowerCase();
//System.out.println(OS);
if (isWindows()) {
return false;
} else {
return true;
}
}
public static boolean isWindows() {
return (OS.indexOf("win") >= 0);
}
}public boolean isMac()
{
return ! isWindows();
}