MCPcopy
hub / github.com/arduino/Arduino / setIcon

Method setIcon

app/src/processing/app/Base.java:2131–2143  ·  view source on GitHub ↗

Give this Frame an icon.

(Frame frame)

Source from the content-addressed store, hash-verified

2129 * Give this Frame an icon.
2130 */
2131 static public void setIcon(Frame frame) {
2132 if (OSUtils.isMacOS()) {
2133 return;
2134 }
2135
2136 List<Image> icons = Stream
2137 .of("16", "24", "32", "48", "64", "72", "96", "128", "256")
2138 .map(res -> "/lib/icons/" + res + "x" + res + "/apps/arduino.png")
2139 .map(path -> BaseNoGui.getContentFile(path).getAbsolutePath())
2140 .map(absPath -> Toolkit.getDefaultToolkit().createImage(absPath))
2141 .collect(Collectors.toList());
2142 frame.setIconImages(icons);
2143 }
2144
2145
2146 /**

Callers 7

FindReplaceMethod · 0.95
EditorMethod · 0.95
handleSerialMethod · 0.95
handlePlotterMethod · 0.95
initComponentsMethod · 0.80
MenuScrollItemMethod · 0.80

Calls 2

isMacOSMethod · 0.95
getContentFileMethod · 0.95

Tested by

no test coverage detected