Get an ImageIcon from the Processing 'lib' folder. @since 3.0a6
(String filename)
| 531 | * @since 3.0a6 |
| 532 | */ |
| 533 | static public ImageIcon getLibIcon(String filename) { |
| 534 | File file = Platform.getContentFile("lib/" + filename); |
| 535 | if (!file.exists()) { |
| 536 | // System.err.println("does not exist: " + file); |
| 537 | return null; |
| 538 | } |
| 539 | return new ImageIcon(file.getAbsolutePath()); |
| 540 | } |
| 541 | |
| 542 | |
| 543 | static public ImageIcon getIconX(File dir, String base) { |
no test coverage detected