Ready for deployment, applet is centered and resizes itself.

This commit is contained in:
Travis Burtrum 2012-02-08 00:34:13 -05:00 committed by moparisthebest
parent 917d71e4b6
commit ea86195736
1 changed files with 4 additions and 0 deletions

View File

@ -510,6 +510,10 @@ public class ResourceGrabber {
for (Downloader dl : this.downloaders)
if (dl.supportsURL(url))
return dl;
// if it's a file, put a "file://" in front of it
// or allow files
if (new File(url).exists())
return this.getSupportedDownloader("file://"+url);
throw new MalformedURLException("Unsupported URL: " + url);
}