you can't. as far as I can remember (and bear in mind I was only using java2) - java only supports .gif and .jpg/.jpeg formats.
If you have a .icon file, you will first need to convert it to one of the formats mentioned above (by using image software such as GIMP - its free!!) and then you can bring the file into your swing app by creating a new ImageIcon and giving it the path.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.