🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12308

Re: setIconImage for JFrame

#12308
From: Matt Krevs
Date: Tue, 19 Jan 1999 00:00
28 lines
1358 bytes
setIconImage is contained in java.awt.Frame and takes an java.awt.Image as
an argument. This is a very different animal to a
com.sun.java.swing.ImageIcon.

Anne Nortcliffe wrote in message <36A3563A.34306F81@sheffield.ac.uk>...
>I don't seem to be able to get this function to work...
>I've tried,
>            import com.sun.java.swing.*;
>            .
>            .
>            .
>
>                ImageIcon icon= new
>ImageIcon("C:\\jbuilder2\\lib\\image32\\appwr.gif");
>                this.setIconImage(icon);
>                but on compiling, the response is,
>
>             method setIconImage(com.sun.java.swing.ImageIcon) not found
>in class projectname.framename
>
>I've also tried,
>
>this.setIconImage("C:\\jbuilder2\\lib\\image32\\appwr.gif");
>
>with similar results
>
>Any help would be greatly appreciated...
>
Technical Details
Message-ID: <780a25$a817@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36A3563A.34306F81@sheffield.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,37b9755902290c32
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: setIconImage for JFrame
Date: 1999/01/19
Message-ID: <780a25$a817@forums.borland.com>
X-Deja-AN: 434162046
References: <36A3563A.34306F81@sheffield.ac.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing