Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:java:resources [2021/12/09 14:16] – bernstdh | student:java:resources [2024/05/05 19:42] (current) – bernstdh | ||
---|---|---|---|
Line 10: | Line 10: | ||
==== Icons ==== | ==== Icons ==== | ||
- | To easiest way to refer to icons in a protable | + | To easiest way to refer to icons in a portable |
<code java> | <code java> | ||
Line 41: | Line 41: | ||
<code java> | <code java> | ||
- | InputStream is = this.getClass().getResource("/ | + | InputStream is = this.getClass().getResourceAsStream("/ |
</ | </ | ||
Line 73: | Line 73: | ||
/** | /** | ||
* Copy all of the files from a resources package to a temporary directory | * Copy all of the files from a resources package to a temporary directory | ||
- | * on the file system (whether or not the code and resources | + | * on the file system (whether or not the code and resources |
* file or on the file system). | * file or on the file system). | ||
| |