🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFrame and Icons

#12374
From: Anne Nortcliffe
Date: Fri, 15 Jan 1999 00:00
20 lines
1281 bytes
Yes I've tried that,

ImageIcon icon= new ImageIcon("C:\\jbuilder2\\lib\\image32\\appwr.gif");
 this.setIconImage(icon);
(after making the relevant imports...)
but it comes up with setIconImage not found in frame.

Matt Krevs wrote:

> setImageIcon() should definitely work. I would guess that the image you are
> specifying is not in the classpath for your application.
>
> Anne Nortcliffe wrote in message <369E0D42.7512B18F@sheffield.ac.uk>...
> >Stupid question: How do you add an Icon to a JFrame?
> >
> >I tried setImageIcon and various other things but to no avail, there
> >must be a way I'm just not seeing.
> >
> >Thanks for any help.
> >
Technical Details
Message-ID: <369F2A09.B4DFF7C6@sheffield.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <369E0D42.7512B18F@sheffield.ac.uk> <77lrq5$1he18@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1127e0807ff1077
X-Google-Attributes: gid111d45,public
From: Anne Nortcliffe <cop94aln@sheffield.ac.uk>
Subject: Re: JFrame and Icons
Date: 1999/01/15
Message-ID: <369F2A09.B4DFF7C6@sheffield.ac.uk>
X-Deja-AN: 432920571
Content-Transfer-Encoding: 7bit
References: <369E0D42.7512B18F@sheffield.ac.uk> <77lrq5$1he18@forums.borland.com>
To: Matt Krevs <mattkrevs@flex.com.au>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing