Re: Giving an application a window icon in a sensible way




"Twisted" <twisted0n3@xxxxxxxxx> wrote in message
news:1163985897.353793.93270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hrm. How to go about doing this?

I want to give a Java application a window icon in a manner that is
independent of how it is installed, etc.

The usual method is to use Class.getResource(), which will work
whether the class and icon are in a jar file or not.


.