FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1133 : ImageIcon not recognized
Last modified: 2009-01-21 04:10
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
XLd
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2009-01-21 01:35
Code in setup():
ImageIcon titlebaricon = new ImageIcon(loadBytes("myicon.gif"));
frame.setIconImage(titlebaricon.getImage());
Error:
Cannot find a class or type named "ImageIcon"
Sys:
Processing 1.0.1
Windows XP sp3
Additional Comment
#1 From fry 2009-01-21 04:10
That's not a bug. If you write straight Java code, you have to do the same
things as you would with Java, such as write the import statement for
ImageIcon.