|
@@ -5,6 +5,7 @@ import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
|
|
|
import javax.imageio.ImageIO;
|
|
|
+import javax.swing.ImageIcon;
|
|
|
|
|
|
public class Util {
|
|
|
|
|
@@ -25,8 +26,9 @@ public class Util {
|
|
|
return ImageIO.read(f);
|
|
|
} catch (IOException e) {
|
|
|
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){
|
|
|
String forcedSeparator="/";
|