MCPcopy Index your code
hub / github.com/processing/processing / getLibIcon

Method getLibIcon

app/src/processing/app/ui/Toolkit.java:533–540  ·  view source on GitHub ↗

Get an ImageIcon from the Processing 'lib' folder. @since 3.0a6

(String filename)

Source from the content-addressed store, hash-verified

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) {

Callers 5

loadIconMethod · 0.95
setLayoutMethod · 0.95
setLayoutMethod · 0.95
getLibImageMethod · 0.95
Welcome2Method · 0.95

Calls 1

getContentFileMethod · 0.95

Tested by

no test coverage detected