# File not found using surface.setIcon(icon) in public class test extends PApplet

**URL:** <https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [January 19, 2025, 7:57am UTC](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622 "2025-01-19T07:57:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 19, 2025, 1:06pm UTC](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622/4 "2025-01-19T13:06:08Z")

</div>

> [@Pure Java random string code to Processing random string code](https://discourse.processing.org/t/pure-java-random-string-code-to-processing-random-string-code/36072/5):
>
> Actually Java can have keyword class inside a function! However its usage is rare & not so many folks know about it: nerd_face void settings() { size(600, 400); noLoop(); class classInsideFunction extends PApplet { public void settings() { size(400, 300); println(sketchPath()); } public void setup() { frameRate(1); } public void draw() { background((color) random(#000000)); } } final String[] switches = { ARGS\_SKETCH\_FOLDER +…

---

_[View the full topic](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622)._
