RE: Icon for an application

1999-11-22 Thread andrey
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

Re: Icon for an application

1999-11-22 Thread Joseph Shraibman
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

Icon for an application

1999-01-17 Thread Dirk Waxweiler
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 =