Bug 1133 : ImageIcon not recognized
Last modified: 2009-01-21 04:10




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

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.