15 private static String url =
"http://rsb.info.nih.gov/ij/images/clown.gif";
21 public void run(String urlOrName) {
22 if (!urlOrName.equals(
"")) {
26 Opener.convertGrayJpegTo8Bits(imp);
31 GenericDialog gd =
new GenericDialog(
"Enter a URL");
32 gd.addMessage(
"Enter the URL of a TIFF, JPEG or GIF image:");
33 gd.addStringField(
"", url, 40);
37 url = gd.getNextString();
39 if (url.indexOf(
"://")==-1)
40 url =
"http://" + url;
41 if (url.endsWith(
"/"))
42 IJ.
runPlugIn(
"ij.plugin.BrowserLauncher", url.substring(0, url.length()-1));