(InputStream f, Applet applet)
| 393 | */ |
| 394 | |
| 395 | @Deprecated(since = "IJ XX; Java 26") |
| 396 | static String loadAppletProps(InputStream f, Applet applet) { |
| 397 | if (f==null) |
| 398 | return PROPS_NAME+" not found in ij.jar"; |
| 399 | try { |
| 400 | props.load(f); |
| 401 | f.close(); |
| 402 | } |
| 403 | catch (IOException e) {return("Error loading "+PROPS_NAME);} |
| 404 | try { |
| 405 | URL url = new URL(applet.getDocumentBase(), "images/"); |
| 406 | imagesURL = url.toString(); |
| 407 | } |
| 408 | catch (Exception e) {} |
| 409 | return null; |
| 410 | } |
| 411 | |
| 412 | /** Returns the URL of the directory that contains the ImageJ sample images. */ |
| 413 | public static String getImagesURL() { |
no test coverage detected