🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Remove Java Icon from Jdialog

#11083
From: Lars Roe
Date: Wed, 14 Jul 1999 00:00
55 lines
1767 bytes
From the FAQ:

23.(Sect. 10) How do I change the icon on my Frame or JFrame
from the Java coffee cup to my own icon? 

        Just use 

     f.setIconImage(
Toolkit.getDefaultToolkit().getImage(iconfilename) );

     On Windows, the icon must be 16-by-16 pixels. 

I also use:
//Get the Window Icon up
//To do this, make sure the file is in the same directory as
your class file
try {
	Image iconImage =
Toolkit.getDefaultToolkit().getImage(getClass().getResource("icon.gif"));
	getFrame().setIconImage(iconImage);
} catch (Exception e) {	}

Good Luck,
Lars


"Bhardwaj, Rohit" wrote:
> 
> Hi,
> I could't locate the answer for having our own Jdialog Icon creation.
> 
> Please help me with this.
> 
> Regards,
> Rohit
> 
> Lars Roe <roex0029@tc.umn.edu> wrote in message
> <378CCA7A.755F02C3@tc.umn.edu>...
> > I believe that's in the FAQ: www.afu.com
> >
> > Rohit Bhardwaj wrote:
> > >
> > > Hi,
> > > Can we remove the Java icon (cup with hot coffee ) from  jdialog class.
> > >
> > > Regards,
> > > Rohit Bhardwaj
> >
> > --
> > Lars Roe

-- 
Lars Roe
612-624-6711
roex0029@tc.umn.edu
Technical Details
Message-ID: <378CDDC1.7698ADD4@tc.umn.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <F14B4A785101D211A4C9006008CDCDAF0204AB35@EXCHG_CA>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,12358b928a63374a
X-Google-Attributes: gid111d45,public
From: Lars Roe <roex0029@tc.umn.edu>
Subject: Re: Remove Java Icon from Jdialog
Date: 1999/07/14
Message-ID: <378CDDC1.7698ADD4@tc.umn.edu>
X-Deja-AN: 501029307
Content-Transfer-Encoding: 7bit
References: <F14B4A785101D211A4C9006008CDCDAF0204AB35@EXCHG_CA>
To: "Bhardwaj, Rohit" <RBhardwaj@Kronos.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: UM
Mime-Version: 1.0
Reply-To: Lars.W.Roe-1@tc.umn.edu
Newsgroups: borland.public.jbuilder.java.swing