🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFrame icon

#8497
From: John P. McGrath
Date: Thu, 31 Aug 2000 00:00
21 lines
1129 bytes
On Tue, 29 Aug 2000 19:17:05 -0700, Jason wrote:

> I know I have seen before in many Swing applications the
> icon in the upper left corner changed to some other image.
> I can't seem to find a method for changing that in either
> JWindow or JFrame, can someone point me in the right direction?

The Frame class (and therefore JFrame) has the following method:

    public void setIconImage( Image image );

There is no such method for Window or JWindow.  A Window does not have a 
title bar, so there would be no place to draw the icon.

Dialogs have an icon, but no setIconImage() method.  Dialogs inherit the 
icon from their parent.

-- 
Regards,

John McGrath
Technical Details
Message-ID: <MPG.1417ce6acb0b441a989b0c@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8ohq24$r1r6@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b6abf58703b6a086
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JFrame icon
Date: 2000/08/31
Message-ID: <MPG.1417ce6acb0b441a989b0c@forums.borland.com>
X-Deja-AN: 664649216
References: <8ohq24$r1r6@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing