Hi, Dirk!
Here is an example that creates ImageIcon (it's swing) from gif.
The advantage is that /images/*.* is relative to CLASSPATH i.e.
you don't care about exact location and it also works fine if resources come
from jar. It is also platform-independent i.e. the same line of code
works fine o
Dirk Waxweiler wrote:
> Hi everybody
>
> I want to insert an Icon for my GUI. I get an Icon, but it ist a black
> point.
>
> URL url = new URL("file:///./Brief.gif");
> Image icon = Toolkit.getDefaultToolkit().getImage(url);
> prog.setIconImage(icon);
>
> Is my gif too big ?
>
I think the file u
Hi everybody
I want to insert an Icon for my GUI. I get an Icon, but it ist a black
point.
URL url = new URL("file:///./Brief.gif");
Image icon = Toolkit.getDefaultToolkit().getImage(url);
prog.setIconImage(icon);
Is my gif too big ?
MfG Dirk
=