|
@@ -5,6 +5,7 @@ import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
|
import javax.imageio.ImageIO;
|
|
import javax.imageio.ImageIO;
|
|
|
|
+import javax.swing.ImageIcon;
|
|
|
|
|
|
public class Util {
|
|
public class Util {
|
|
|
|
|
|
@@ -25,8 +26,9 @@ public class Util {
|
|
return ImageIO.read(f);
|
|
return ImageIO.read(f);
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
|
+ return new ImageIcon(url).getImage();//TODO: There is no reason this should work if everything else failed.
|
|
}
|
|
}
|
|
- return null;
|
|
|
|
|
|
+ //return null;
|
|
}
|
|
}
|
|
static File loadFile(Object origin, String url){
|
|
static File loadFile(Object origin, String url){
|
|
String forcedSeparator="/";
|
|
String forcedSeparator="/";
|